输出报错:
代码语言:javascript复制UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 220: in
解决方案:将编码方式utf-8 修改为gb18030
例如:
代码语言:javascript复制requests.get(url,headers).content.decode('gb18030')
输出报错:
代码语言:javascript复制UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 220: in
解决方案:将编码方式utf-8 修改为gb18030
例如:
代码语言:javascript复制requests.get(url,headers).content.decode('gb18030')