标签:style blog color ar sp div c on log
#!coding:utf-8
# 获取web页面
import sys,urllib2 req=urllib2.Request(sys.argv[1]) fd=urllib2.urlopen(req) while 1: data=fd.read() if not len(data): break print data
#coding:utf-8 import sys,urllib2 req=urllib2.Request(sys.argv[1]) fd=urllib2.urlopen(req) print "url:",fd.geturl() print "info:",fd.info()
标签:style blog color ar sp div c on log
原文地址:http://www.cnblogs.com/Lzero/p/4000166.html