借鉴:https://blog.youkuaiyun.com/jusang486/article/details/82992752
方式一
# 根据需求转化 response.encoding
response.body.decode(response.encoding)
方式二
import chardet
chardet.detect(response.body)#获取编码
response.body.decode('utf-8')
借鉴:https://blog.youkuaiyun.com/jusang486/article/details/82992752
方式一
# 根据需求转化 response.encoding
response.body.decode(response.encoding)
方式二
import chardet
chardet.detect(response.body)#获取编码
response.body.decode('utf-8')