This commit is contained in:
2024-03-29 12:31:49 +08:00
parent 6637dbdd36
commit a58118d3fb
7 changed files with 89 additions and 30 deletions

View File

@@ -0,0 +1,7 @@
import pickle
data = [1, 2, 3]
with open('a.txt', 'wb') as f:
pickle.dump(data, f)
with open('a.txt', 'rb') as f:
data_load = pickle.load(f)
print(data_load)