pythonimportrequestsurl='http://www.baidu.com'headers={'Content-Type':'application/json'}r=requests.get(url,headers=headers)printr.headers['Content-Type']输出的内容为text/html;charset=utf-8而不是我设置的application/json何解?BTWpython2.7.9
url='http://www.baidu.com'headers={'Content-Type':'application/json'}r=requests.get(url,headers=headers)printr.headers['Content-Type']输出的内容为text/html;charset=utf-8而不是我设置的application/json何解?BTWpython2.7.9
headers={'Content-Type':'application/json'}r=requests.get(url,headers=headers)printr.headers['Content-Type']输出的内容为text/html;charset=utf-8而不是我设置的application/json何解?BTWpython2.7.9
r=requests.get(url,headers=headers)printr.headers['Content-Type']输出的内容为text/html;charset=utf-8而不是我设置的application/json何解?BTWpython2.7.9
printr.headers['Content-Type']输出的内容为text/html;charset=utf-8而不是我设置的application/json何解?BTWpython2.7.9
输出的内容为text/html;charset=utf-8而不是我设置的application/json何解?BTWpython2.7.9
何解?BTWpython2.7.9
BTWpython2.7.9
一只名叫tom的猫
相关分类