原文:Python報錯 “UnicodeDecodeError: ‘gb2312’ codec can’t decode byte 0xa4 in position… : illegal multibyte sequence”

一 報錯場景 使用python遇到報錯: UnicodeDecodeError: gb codec can t decode byte xa in position : illegal multibyte sequence 一般有如下兩種場景: .爬取中文網站內容 html urllib.request.urlopen request .read .decode gb .讀取gbk編碼的文件 re ...

2021-11-20 21:24 0 2791 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM