标签: python encoding pickle
这是我的代码:
list = ["example"] def speichern(charts): f = open("test.txt", "wb") pickle.dump(list, f, ) f.close()
可以,但是test.txt的内容是:
test.txt
€]q ]q(X exampleqX qea
我该如何解决?