PythonScripter2.7報錯ascii codec can't encode characters in position 0-1:ordinal not in range(128)

1. 這是Python 2 mimetypes的bug2. 須要將Python2.7\lib\mimetypes.py文件中以下片斷註釋或刪除:try:    ctype = ctype.encode(default_encoding) # omit in 3.x!except UnicodeEncodeError:    pass
相關文章
相關標籤/搜索