发布时间:2019-08-13 07:35:02编辑:auto阅读(1897)
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实例
51347
50810
41404
38204
32695
29587
28418
23307
23260
21591
1670°
2401°
2008°
1944°
2277°
1975°
2680°
4482°
4311°
3073°