原文:python3 報錯:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 201: invalid continuation byte

代碼: 報錯: 原因: 確定要抓取的頁面的編碼,並不是所有網站的編碼都是utf 的,resp.read .decode 應傳入與要抓取的網頁一致的編碼。 ...

2018-04-18 15:37 0 5648 推薦指數:

查看詳情

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