Drkcore

28 07 2010 Python Tweet

cPickle

cPickleを使ってみる。

ダンプするとき

import cPickle

with open("list.txt","w") as f:
    cPickle.dump([1,2,3,4,5],f)

ロードするとき

with open("list.txt","r") as f:
    a = cPickle.load(f)

print a

ProductName Python クックブック 第2版
Alex Martelli,Anna Martelli Ravenscroft,David Ascher
オライリー・ジャパン / ¥ 4,410 ()
在庫あり。

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021