Today I start copying the code of enterprise code .
Because I really don't understand the requirement so I typed first two functions.
-
The first function is check whether the folder exists
-
The second function is create a folder if there's no old target folder.
# This is a system to generate the Enterprise code #the function below is used to create the folder def mkdir (path): isexists = os.path.exists (path) # Check whether the folder exists if not isexists: os.mkdir(path) # create a folder
# this is a funtion of reading the content and closing folder def openfile(filename): f = open (filename) fllist = f.read() f.close() return fllist
- Don't settle for average.Bring the best to your moment.