#代理 proxies={ "http":"http://121.61.24.112:9999", "https":"https://125.120.8.172:6666", } headers={ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 SE 2.X MetaSr 1.0" } r=requests.get('http://httpbin.org/get',proxies=proxies,headers=headers).text print(r)