UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe5 import sys reload(sys) sys.setdefaultencoding(‘utf8′) 把 str 编码由 ascii 改为 utf8 (或 gb18030)