One - One Code All

Blog Content

python中requests乱码问题

Python   2011-08-23 21:28:03

直接上代码。

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



上一篇:date.replace用法
下一篇:python将pandas或numpy省略的数据全部显示display

The minute you think of giving up, think of the reason why you held on so long.