您的位置:首页 > 运维架构 > Apache

apache2.4中layout模块和ssi模块的冲突

2016-04-05 14:00 477 查看
import urllib
url = "http://www.top100.cn/download/dl.php?n=Eat+Dirt.mp3&al=sgchdnctugy"
file = "e:/test.mp3"

def reporthook(blocks_read,block_size,total_size):
if not blocks_read:
print ("Connection opened")
if total_size <0:
print "Read %d blocks"  % blocks_read
else:
print "downloading: %d KB, totalsize: %d KB" % (blocks_read*block_size/1024.0,total_size/1024.0)

if __name__ == '__main__':
urllib.urlretrieve(url,file,reporthook)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: