- print('For '+word+' Start download...')
- x = len(srcs)
- formin range(0,x):
- print(str(m)+'***** '+songnames[m]+' - '+singers[m]+'.m4a *****'+' Downloading...')
- try:
- urllib.request.urlretrieve(srcs[m],'d:/music/'+songnames[m]+' - '+singers[m]+'.m4a')
- except:
- x = x - 1print('Download wrong~')
- print('For ['+word+'] Download complete '+str(x)+'files !')
来源: http://www.cnblogs.com/dearvee/p/6602677.html