開発環境
- OS X Mavericks - Apple(OS)
- Emacs (CUI)、BBEdit - Bare Bones Software, Inc. (GUI) (Text Editor)
- Python (プログラミング言語)
『初めてのPython 第3版』(Mark Lutz 著、夏目 大 訳、オライリー・ジャパン、2009年、ISBN978-4-87311-393-7)のⅠ部(Pythonの基礎知識)のまとめ演習、6.(処理の中断)を解いてみる。
その他参考書籍
6.(処理の中断)
入出力結果(Terminal)
$ python3.3 Python 3.3.3 (default, Dec 2 2013, 01:40:21) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> L = [1,2] >>> L.append(L) >>> L[0] 1 >>> L[1] 2 >>> L [1, 2, [...]] >>> L[2] [1, 2, [...]] >>> L[2][0] 1 >>> L[2][1] 2 >>> L[2][2][2][2][2] [1, 2, [...]] >>> quit() $
0 コメント:
コメントを投稿