‘gbk‘ codec can‘t decode byte 0xaf in position 12: illegal multibyte sequence
作者:互联网
‘gbk’ codec can’t decode byte 0xaf in position 12: illegal multibyte sequence
#报错
stopkey = [w.strip() for w in codecs.open('stopWord.txt', 'r').readlines()]
添加
,encoding="utf-8"
stopkey = [w.strip() for w in codecs.open('stopWord.txt', 'r',encoding="utf-8").readlines()]
标签:12,utf,sequence,0xaf,readlines,stopWord 来源: https://blog.csdn.net/qq_45972323/article/details/120153821