天天看点

UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa3 in position 29: illegal multibyte sequence

1 读取时open(‘xx.txt’ , encoding=‘UTF-8’) 后面加上编码格式

2 python2升级到python3

3 将pycharm的file encoding 改为 UTF-8