python3 使用代理

#代理使用
>>> proxy_handler=urllib.request.ProxyHandler({'http':'211.81.31.18:8081'})
>>> opener=urllib.request.build_opener(proxy_handler)
>>> urllib.request.install_opener(opener)
>>> page=urlopen('http://ip.chinaz.com/getip.aspx')
>>> print(page.read().decode('utf-8'))
{ip:'221.238.67.231',address:'天津市 电信'}
上一篇:阿里云Kubernetes服务 - Service Broker快速入门指南


下一篇:RTDX target application does not match emulation protocol!