爬虫nicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xd6 in position 4824: illegal multibyte sequence

爬虫报错nicodeDecodeError: 'gbk' codec can't decode byte 0xd6 in position 4824: illegal multibyte sequence

 response_content_text = response_content_data.decode("GBK")出错

response_content_text = response_content_data.decode("GBK", errors="ignore")成功

 

©️2020 CSDN 皮肤主题: 游动-白 设计师:上身试试 返回首页