req = requests.post(url,data=data)
req.encoding = 'gbk'
print(req.text.encode('gbk').decode(req.apparent_encoding))
python2 中文无法解码的问题
最新推荐文章于 2023-04-06 10:40:37 发布
req = requests.post(url,data=data)
req.encoding = 'gbk'
print(req.text.encode('gbk').decode(req.apparent_encoding))