Entries from 2011-09-21 to 1 day

How To Name

Names and natures do often agree. When I was about to register my Python script to GitHub, I stopped actually doing it just before clicking a "Register" icon. The name of script doesn't seemed to represent what it was nor how it would work…

Pythonで複数行のCSVの書き込み

Pythonで複数行のCSVの書き込みをおさらいしておきます。 その前に、一行だけCSVに書きこむ方法も念の為メモ。 [code lang="python"] #!/usr/bin/env python import csv csvfile = "/tmp/spam.csv" csvdata = ["spam", "eggs"] writer = csv.writer(file(csv…