wy = requests.get(url) 解决网页中文乱码方法如下: wy.content.decode(“utf8”, “ignore”).encode(“gbk”, “ignore”) html = wy.text