python2.7에서 hwp파일 minetype 읽어오기
조회수 983회
from mimetypes import MimeTypes
mime = MimeTypes() mime_type = mime.guess_type('C:\SomePath\hangle.hwp')
print mime_type
위의 코드에서 한글 문서의 mine-type을 얻어서 결과를 출력하면 (None, None) 이 출력되네요 hwp mine-type얻어오는 방법이 없을까요?
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력