Generation

generate functionFri, 28 Apr 2023

programa para generar directorios en windows

import os def mkdir(path): path = path.strip() path = path.rstrip() isExists = os.path.exists(path) if not isExists: os.makedirs(path) print(path + ' create successful!') return True else: print(path + ' exists!') return False mkdir('./asdf')

Questions about programming?Chat with your personal AI assistant