//批量创建文件夹def 自动创建文件夹(self): path_list = [ 'date', 'andy', 'index', 'other'] for i in path_list: path_T = self.path + '/' + i if not os.path.exists(path_T): os.makedirs(path_T)