爬虫3 requests基础之 乱码编码问题时间:2023-03-09 18:33:53 import requests res = requests.get('http://www.quanshuwang.com') res.encoding = 'gbk' print(res.text) html中若有编码 在html中Ctrl+f 搜索charset查看网站的编码方式 然后res.encoding=。。。 加上编码格式,再打印