摘要:
#coding=utf-8 import os path = '/opt/fish/' count = 1 for file in os.listdir(path): os.rename(os.path.join(path,file),os.path.join(path,str(count)+".jpg")) count+=1 阅读全文
摘要:
#coding=utf-8 import urllib2 import os import re count=0#计数君 for line in open("./imagenet1.synset.geturls"): imagename=str(count+1) print(imagename) try: url=urllib2.url... 阅读全文