("响应正文:",res.text,type(res.text))#html
print("响应正文2:",res.json(),type(res.json()))
伪装请求头 User-Agent...","date":'2014-09-09'}
res=requests.post(url,data)#响应结果的消息实体 http response包含响应头,响应状态码,响应正文,Cookie
print...))#html
print("响应正文2:",res.json(),type(res.json()))
recharge_url='http://v.juhe.cn/laohuangli/d'
recharge_data...html
print("响应正文2:",res.json(),type(res.json()))
'''
响应头: {'Date': 'Sun, 02 Feb 2020 13:39:07 GMT', '...http response包含响应头,响应状态码,响应正文,Cookie
return res#返回一个消息实体
if __name__ =='__main__':
url