[已解决]报错UnicodeDecodeError

输出报错:

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

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

例如:

requests.get(url,headers).content.decode('gb18030')
原文地址:https://www.cnblogs.com/hankleo/p/11321075.html