開発環境
- 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 Ⅰ Exercises 6.(Breaks and cycles)を解いてみる。
その他参考書籍
Test Your Knowledge: Part Ⅰ Exercises 6.(Breaks and cycles)
入出力結果(Terminal, IPython)
Python 3.4.1 (default, May 21 2014, 01:39:38) Type "copyright", "credits" or "license" for more information. IPython 2.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: L = [1, 2] In [2]: L.append(L) In [3]: L # 循環 [1, 2, [1, 2, [1, 2, [1, 2, [1, 2, ...]]]]] Out[3]: [1, 2, [1, 2, [1, 2, [1, 2, [1, 2, Ellipsis]]]]] In [4]: quit() Process Python finished
0 コメント:
コメントを投稿