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'))



上一篇:心学四诀与知行合一
下一篇:PHP实现HTTP断点续传的方法

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