import requests,json
#API的URL
gaode_url = "https://resttest.amap.com/v3/weather/weatherInfo?parameters"
#传入的JSON数据
data = json.dumps({'key':'abaed5d6bd4848bb9ad9','city':'1113','output':'JSON','extensions':'base'})
#head头部
params = {'user':'test','passwd':'123457dasds'}
#发出请求获取请求输出
g = requests.get(url=gaode_url,params=params,data=data)
#输出请求获取到的内容
print(json.loads(g.content))