開発環境
- OS X Mavericks - Apple(OS)
- Emacs (CUI)、BBEdit - Bare Bones Software, Inc. (GUI) (Text Editor)
- Python (プログラミング言語)
Learning Python (Mark Lutz (著)、Oreilly & Associates Inc)のPart Ⅰ.(Getting Started)、Test Your Knowledge: Part I Exercises、6. (Breaks and cycles)を解いてみる。
その他参考書籍
6. (Errors and debugging)
循環する。
図で表現してみる。
L = [1, 2]

L.append(L)後のL。

確認。
入出力結果(Terminal)
$ python3 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 [1, 2, [...]] >>> quit() $
0 コメント:
コメントを投稿