直接上代码:复制代码 代码如下:# -*- coding: utf-8 -*- import Queue import threadingimport urllibimport urllib2import os def down(url,n): print ‘item ‘+str(n)+’ start ‘ filename=urllib2.unquote(url).decode(‘utf8’).split(‘/’)[-1] urllib.urlretrieve(url, filename) print ‘item ‘+str(n)+’ finish ‘ def work