File "D:\Python27\lib\mimetypes.py", line 249, in enum_types ctype = ctype.encode(default_encoding) # omit in 3.x! UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
解决方法:
删除
try:
ctype = ctype.encode(default_encoding)# omit in 3.x!exceptUnicodeEncodeError:pass