摘要:
#coding=utf-8 import urllib2 from HTMLParser import HTMLParser class HttpParser(HTMLParser): def __init__(self): HTMLParser.__init__(self) self.move=[] def handle_starttag(se... 阅读全文
摘要:
def progress(blk,blk_size,total_size):#当前下载量,每个量的大小,整个大小 print "aa=%d\nbb=%d\ncc=%f%%"%(blk*blk_size,total_size,blk*blk_size/total_size)filename,heade 阅读全文