python requests庫 響應中文亂碼

qq_31683775發表於2020-03-02
    response = requests.request("POST", url, headers=headers, data = payload)

    html=response.content
    html_doc=str(html,'utf-8') #html_doc=html.decode("utf-8","ignore")
    print(html_doc)

 

相關文章