UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 25: invalid continuation byte

報錯:編碼解碼錯誤 原因1:代碼中有中文或路徑中有中文字符 原因2:導入文件編碼問題 我的代碼屬於第二種情況 解決方法: 用記事本打開csv文件 選擇文件——另存爲——編碼選擇UTF-8 Python導入文件時選擇該編碼的文件
相關文章
相關標籤/搜索