python-request-抓取百度-乱码

抓取百度的页面返回乱码,解决方式:
res = requests.get(text)
res.encoding = 'utf-8'

猜你喜欢

转载自blog.csdn.net/weixin_42670402/article/details/82381760