这是一个创建于 4779 天前的主题,其中的信息可能已经有所发展或是发生改变。
    
    
    
        
        从网上抓取的图片想保存到本地,试了很多方法都实现不了,系统为mac。
images = ['http://www.xxx.com/01.jpg','http://www.xxx.com/01.jpg']
for image in images:
    filename = random.randint(1,100)
    local = r"~/Downloads/test/"
    urllib.urlretrieve(image,local+filename+'.jpg')
        
     
    
    
    
        
    
    
    
    
 
    1 条回复  •  1970-01-01 08:00:00 +08:00