In my travels in the land of python, I have come across some information that wasn't easy find or clear up, so here is what I learned:
* To create a File , you just have to use the file.open(file_name, "w") command and give it a name that doesn't exist. This applies for creating files with any other commands, such as XML or Pickle, except that with a Pickle it's pickle.dump().
* If you are trying to create a Folder, you have to look up how to create a Dictionary (And I don't mean a dictionary to store data a.k.a {} ). Prior to Windows, folders were called dictionaries. The command is os.mkDir by the way
* To edit a single object in a list, you can just do list[1] = new value, instead of having to use the remove and insert commands
No comments:
Post a Comment