解决UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe5 in position 108: ordinal not in range(128
摘要:
对需要 str->unicode 的代码,可以在前边写上 import sys reload(sys) sys.setdefaultencoding(‘utf8′) 把 str 编码由 ascii 改为 utf8 (或 gb18030) 参考: https://blog.csdn.net/mindm 阅读全文
posted @ 2019-02-27 16:59
anobscureretreat
阅读(204)
评论(0)
推荐(0)

浙公网安备 33010602011771号