编码问题,在头部添加
import sys reload(sys) sys.setdefaultencoding( "utf-8" )
http://www.xuebuyuan.com/2226637.html