摘要: 利用缓存实现简单的获取import urllibimport osdef reporthook(blocks_read,block_size,total_size): if not blocks_read: print 'Connection opened' return if total_size < 0: print 'Read %d blocks ( %d bytes ) '%(blocks_read,blocks_read*block_size) else: amount_read = blocks_read*b... 阅读全文
posted @ 2012-08-19 22:18 Crazy_yiner 阅读(1926) 评论(2) 推荐(0) 编辑