# GET:获取数据,参数放在 URL 里 # 类比:在浏览器地址栏输入网址查东西 response = requests.get( "https://api.example.com/weather", params={"city": "三亚", "key": "your_api_key"} )