python報錯-UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 4

1.報錯截圖: 2.報錯代碼: b = [x for x in open('F://3m-q-200427//result.txt').readlines() if x.find('words_str')>-1] with open('F:/3m-q-200427/wordstr.txt','w') as f: f.writelines(b) print("finish") 3.解決方法
相關文章
相關標籤/搜索