编程语言
首页 > 编程语言> > python <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't de

python <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't de

作者:互联网

python <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)解决

python : 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

import sys
import os
import string
reload(sys)
sys.setdefaultencoding("utf8")

 

标签:ordinal,0xe6,python,decode,range,codec
来源: https://blog.51cto.com/u_12139363/3023736