データをそのまま保存
2010/8/14
Python2.5.4
import cPickle
# 保存
f = open(fname,"wb")
cPickle.dump(data,f)
f.close()
# 読み込み
f = open(fname,"rb")
result = cPickle.load(f)
f.close()
2010/8/14
Python2.5.4
import cPickle
# 保存
f = open(fname,"wb")
cPickle.dump(data,f)
f.close()
# 読み込み
f = open(fname,"rb")
result = cPickle.load(f)
f.close()