程序报错:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
处理办法:
修改Python本环境,在Python的Lib\site-packages文件夹下新建一个sitecustomize.py文件,内容为:
#coding=utf8 import sys reload(sys) sys.setdefaultencoding('utf8')
参考资料:
https://www.cnblogs.com/xiao-xue-di/p/11283496.html