编码问题,在头部添加 import sys reload(sys) sys.setdefaultencoding( "utf-8" ) http://www.xuebuyuan.com/2226637.html 转载于:https://www.cnblogs.com/juandx/p/5592625.html