開発環境
- 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 5.(Errors and debugging)を解いてみる。
その他参考書籍
Test Your Knowledge: Part Ⅰ Exercises 5.(Errors and debugging)
入出力結果(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]: 2 ** 500 Out[1]: 3273390607896141870013189696827599152216642046043064789483291368096133796404674554883270092325904157150886684127560071009217256545885393053328527589376 In [2]: 1/0 --------------------------------------------------------------------------- ZeroDivisionError Traceback (most recent call last) <ipython-input-2-05c9758a9c21> in <module>() ----> 1 1/0 ZeroDivisionError: division by zero In [3]: a --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-3-60b725f10c9c> in <module>() ----> 1 a NameError: name 'a' is not defined In [4]: quit() Process Python finished
0 コメント:
コメントを投稿