2008-09-01から1日間の記事一覧

Python の対話型プロンプトで補完機能を使う

メーリングリストに目を通していて、補完機能の存在について知りました。以下の2行でさらっと使えます。 >>> import readline, rlcompleter >>> readline.parse_and_bind('tab:complete') 例えば、リストの(特殊)メソッドを調べるには "L." の状態で TAB を2…

Gauche のリスト処理手続き : 1

呼称: リストの基本操作 目的: Gauche のリストの代表的な操作を学ぶ #!/usr/local/bin/gosh ;; -*- coding: utf-8 -*- ;;; basic list operation ;; make list (print "using quote : " '(1 2 3)) (print "using list : " (list 1 2 3)) ;; list operations…