1 读取时open(‘xx.txt’ , encoding=‘UTF-8’) 后面加上编码格式 2 python2升级到python3 3 将pycharm的file encoding 改为 UTF-8