1、requests设置代理 import requests proxies = {'http': 'http://localhost:8888', 'https':'http://localhost:8888'} url = 'http://www.baidu.com' requests.post(url, proxies=proxies, verify=False) #verify是否验证服务器的SSL证书