pickle

Shi Mu samrobertsmith at gmail.com
Tue Oct 25 02:55:32 EDT 2005


I got a sample code and tested it but really can not understand the
use of pickle and dump:

>>> import pickle
>>> f = open("try.txt", "w")
>>> pickle.dump(3.14, f)
>>> pickle.dump([1,2,3,4], f)
>>> f.close()



More information about the Python-list mailing list