1.方法1 指定编码为utf-8 response = requests.get(url=url) response.encoding= 'utf-8' page_text = response.text 2.方法2 重新编码再解码 img_name = img_name.encode('iso-8859-1').decode('gbk')