大家好,又见面了,我是你们的朋友全栈君。
输出报错:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 220: in
解决方案:将编码方式utf-8 修改为gb18030
例如:
requests.get(url,headers).content.decode('gb18030')
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/167832.html原文链接:https://javaforall.cn