发布时间:2019-08-13 07:35:02编辑:auto阅读(2287)
def test3():
url = "http://www.ip.cn"
proxy_handler = urllib2.ProxyHandler({'http' : 'http://username:password@host:port'})
opener = urllib2.build_opener(proxy_handler);
urllib2.install_opener(opener)
conn = urllib2.urlopen(url)
print conn.read()
上一篇: python元字典
下一篇: python操作Mysql实例
55077
41882
36473
31864
26775
26451
24989
20600
16521
15934
3130°
2838°
2931°
3084°
3013°
3287°
3185°
3020°
3005°
2987°