2007-11-14から1日間の記事一覧

文字列分解

";"で区切られた数値羅列の文字列から 数値だけリストとして取り出す。 % python Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more informat…

再インデント後のdiff

vim

インデントを変更したり、タブスペースを変更したファイルとの差分diffを判りやすくしちゃいます。(vimエディタネタ) : サイト更新停滞ちうっ [ 名無しのVIM使い ] が参考になる。

sqlite練習

http://initd.org/pub/software/pysqlite/doc/usage-guide.html を参考に練習。練習用データベースを作る。(エラーもそのままコピーしているので注意) % sqlite3 mydb SQLite version 3.4.0 Enter ".help" for instructions sqlite> create table people .…