一、豌豆http import requests targetUrl = "http://myip.ipip.net" api_url = 'api的网址' a = requests.get(api_url).text httpProxyServer = str(a).strip() print(httpProxyServer