import tensorflow as tf import os categories = ['folder1', 'folder2'] for folderName in categories: #os.makedirs('./%s' % folderName, exist_ok=False); # 当文件已存在,无法创建该文件 os.makedirs('./%s' % folderName, exist_ok=True); #
import tensorflow as tf import os categories = ['folder1', 'folder2'] for folderName in categories: #os.makedirs('./%s' % folderName, exist_ok=False); # 当文件已存在,无法创建该文件 os.makedirs('./%s' % folderName, exist_ok=True); #