摘要: import os,randompath='D:\\图片\\人脸 男\\人脸1/'f = os.listdir(path)count = 0for i in f: # 设置旧文件名(就是路径+文件名) sub = random.randint(1, 10000) oldname = path+f[count] # 设置新文件名 newname = path +'%s_... 阅读全文
posted @ 2017-05-23 16:24 张利宁的杂货铺 阅读(642) 评论(0) 推荐(0) 编辑