python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x96 in position 7811: illegal multi
UnicodeDecodeError:‘gbk’codeccan’tdecodebyte0x96inposition7811:illegalmultibytesequence解决办法1.open(‘file’,‘r’,encoding=‘UTF-8’)解决办法2.open(‘file’,‘rb’)