编程语言
首页 > 编程语言> > python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205:

python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205:

作者:互联网

python读取文章时报错:

UnicodeDecodeError: 'gbk' codec can't decode byte 0x98 in position 53: incomplete multibyte sequence

解决办法:(红线标注)

添加红线上方代码即可

标签:205,sequence,python,multibyte,gbk,decode,codec,UnicodeDecodeError,byte
来源: https://www.cnblogs.com/1024-1006744360/p/10588705.html