import sys reload(sys) sys.setdefaultencoding(‘utf8‘)
UnicodeDecodeError: 'ascii' codec can't decode byte
原文:http://www.cnblogs.com/bluewhale/p/4044247.html