原文:UnicodeDecodeError: 'gb2312' codec can't decode byte 0x95 in position 21604: illegal multibyte sequence報錯解決方案

一 問題描述 python爬取數據:cont rep.read .decode encoding gb 這行代碼報錯 但是查看網頁數據編碼格式確實是gb 編碼 二 解決方案 將gb 改為gbk,即cont rep.read .decode encoding gbk ,問題解決。。 ...

2020-04-08 14:25 0 1064 推薦指數:

查看詳情

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