输出报错:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 220: in

解决方案:将编码方式utf-8 修改为gb18030

例如:

requests.get(url,headers).content.decode('gb18030')

相关文章:

  • 2021-06-18
  • 2021-09-18
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
猜你喜欢
  • 2021-08-28
  • 2021-06-24
  • 2021-09-18
  • 2022-02-08
  • 2022-12-23
  • 2021-09-21
相关资源
相似解决方案