爬虫时,中文可能会出现乱码,可以使用decode()转汉字 html=requests.post(url,data=data).content html=html.decode() print(html)