摘要:
#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 阅读全文
posted @ 2017-03-01 19:08
zhoulixue
阅读(58942)
评论(1)
推荐(4)
摘要:
#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... 阅读全文
posted @ 2017-03-01 19:02
zhoulixue
阅读(291)
评论(0)
推荐(0)

浙公网安备 33010602011771号