标签:python
在执行python脚本时报如下错误:
UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 1-5: ordinal not in range(128)
解决办法
import sys reload(sys) sys.setdefaultencoding(‘utf8‘)
本文出自 “IT民工--小枫” 博客,请务必保留此出处http://wangfeng7399.blog.51cto.com/3518031/1683731
'ascii' codec can't encode characters in position 1-5: ordinal not in range(128)
标签:python
原文地址:http://wangfeng7399.blog.51cto.com/3518031/1683731