requests.get() 创建一个GET请求:
response = requests.get('https://example.com/')
将查询参数作为字典传递给params参数:
response = requests.get('https://example.com/', params={"a": 1, "b": 2})
对于可能需要基本身份验证的GET请求,您可以包括以下auth参数:
response = requests.get('https://api.github.com/user', auth=('user', 'pass'))