ip='192.168.1.1:8000'
psoxy={'http':'http://'+ip}
r=requests.get('http://www.baidu.com',proxies=proxy)
这样就完成了使用ip的代理