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
相关文章
相关标签/搜索