Python requests乱码的五种解决办法

https://blog.csdn.net/lilongsy/article/details/122140098

import requests
res = requests.get("https://www.baidu.com/")
res.encoding = res.apparent_encoding
print(res.text)

  

import requests res = requests.get("https://www.baidu.com/") res.encoding = res.apparent_encoding print(res.text)
posted @ 2022-10-06 15:27  奥兰王子  阅读(92)  评论(0编辑  收藏  举报