Python3 requests返回值中文乱码解决

Python3 requests返回值中文乱码解决
返回乱码,Python3,requests,返回值,中文常用代码示例代码片段
  1. import requests
  2. r=requests.get('https://rumenz.com/')
  3. r.encoding='utf-8'
  4. print(r.text)
原文链接:https://rumenz.com/examples/python3/python3-requests-chinese-garbled.html

【Linux常用命令速查手册】关注【入门小站】,后台回复 「1001」 自取。

点击下面标题即可获取对应PDF资料
↑回到顶部↑
入门小站 @2018