解决方案:
import sys
reload(sys)
sys.setdefaultencoding(‘utf8’)
https://blog.csdn.net/kr2563/article/details/84594789?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1