2008-07-28から1日間の記事一覧
以下を参照。 Python 2.5 Quick Reference Python 2.4 クイックリファレンス(和訳) >>> s = "abc def ghi jkl mno" >>> s.capitalize() 'Abc def ghi jkl mno' >>> s 'abc def ghi jkl mno' >>> "*" * 50 '**********************************************…
SICPの2.3.4 Example: Huffman Encoding TreesあたりをPythonでやってみた scheme ;2.3.4 Example: Huffman Encoding Trees ;Representing Huffman trees (define (make-leaf symbol weight) (list 'leaf symbol weight)) (define (leaf? object) (eq? (car …