摘要: #coding:utf-8 import urllib2 import cookielib url="http://www.baidu.com" print '方法 1' response1=urllib2.urlopen(url) print response1.getcode()#验证打开网页是否成功,成功返回200 print len(response1.read())#打印读取网页... 阅读全文
posted @ 2016-11-14 16:02 200六 阅读(2123) 评论(0) 推荐(0) 编辑