Python读取文件时出现UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x80 in position ...
withopen(self.path,'r')astest:forlineintest:pass代码如上,出现错误:UnicodeDecodeError:'gbk'codeccan'tdecodebyte0x80inposition...UnicodeDecodeError:'gbk'codeccan'tdecodebyte0x80inposition9:...或者是UnicodeDecodeEr