python 程序bug解决方案

1.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

加头文件:参考

reload(sys)
sys.setdefaultencoding('utf-8')
原文地址:https://www.cnblogs.com/kaituorensheng/p/3082815.html