Python爬虫网页乱码处理 # Author: Sooele from bs4 import BeautifulSoup import requests response = requests.get('https://www.autohome.com.cn/news/').text #网页乱码处理 response= response.encode('iso-8859-1').decode('gbk') print(response) 相关