Python Requests编码问题解决方案


resp = requests.get(url)
resp.encoding = 'utf-8'
print(resp.text)

resp = requests.get(url)
print(resp.text.encode(resp.encoding).decode('utf-8'))
https://www.biaodianfu.com/python-requests-encoding-problem.html

本地CMD、git bash执行会存在乱码,建议使用服务器命令行