问题描述: UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa3 in position 10:illegal multibyte sequence 解决方案: 1、修改filecoding 为utf-8 2、读取时open(‘xx.txt’ , encoding=‘UTF-8’) 后面加上编码格式 ,encoding='utf-8'