2011年5月18日
摘要:
import urllib2,urllibclass myDownloader: def download(self,url, filename=""): def reporthook(block_count, block_size, file_size): if file_size ==-1: print "can't determine the file size, now retrived", block_count*block_size else: percentage =int((block_count*block_size*100.0 阅读全文