Here's my code:
list = ["example"]
def speichern(charts):
f = open("test.txt", "wb")
pickle.dump(list, f, )
f.close()
It works, but the content of test.txt
is:
€]q ]q(X exampleqX qea
How do I fix this?
Here's my code:
list = ["example"]
def speichern(charts):
f = open("test.txt", "wb")
pickle.dump(list, f, )
f.close()
It works, but the content of test.txt
is:
€]q ]q(X exampleqX qea
How do I fix this?