Posted in Python onJanuary 17, 2014
def report_hook(count, block_size, total_size): ... print '%02d%%'%(100.0 * count * block_size/ total_size) ... urllib.urlretrieve("http://sports.sina.com.cn/", reporthook= report_hook) 00% 01% 03% ...
python的urllib模块显示下载进度示例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@