Python Requests Get 中文网页乱码解决方法

Python Requests Get 中文网页乱码解决方法:

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

 

posted @ 2016-11-22 16:55  宽客  阅读(2378)  评论(0编辑  收藏  举报