Python报错UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

解决办法:

在报错的页面添加代码: import sys
reload(sys)
sys.setdefaultencoding('utf8')

posted on 2016-03-09 15:08  阿门668  阅读(180)  评论(0)    收藏  举报

导航