import urllib.request
res = urllib.request.urlopen("http://checkip.amazonaws.com/")
# 发送GET请求
response = urllib.request.urlopen('http://www.example.com')
html = response.read()
import requests
response = requests.get('http://www.example.com')
html = response.text
获取windows 出口ip ,用于cdn 访问控制的白名单,同时出口网络非专线无固定ip 的业务场景种