# 使用requests发送POST请求的示例代码如下: import requests url = 'https://www.baidu.com/' values = {'name': 'John', 'age': 25} response = requests.post(url, data=values) print(response.text)