if __name__ == "__main__":
h1 = Person(5)
print (h1)
As shown above, I have a object h1
of class Person
needed to be saved as text file (.txt). I'm wondering how to fulfill this persistence and read it back?
Some users suggested to use pickle, I think I probably need more detail here.
Aucun commentaire:
Enregistrer un commentaire