2014年7月25日金曜日

開発環境

Learning Python (Mark Lutz (著)、Oreilly & Associates Inc)のPART Ⅱ.(Types and Operations)、Chapter 5.(Numeric Types)、Test Your Knowledge: Quiz 5.を解いてみる。

その他参考書籍

Test Your Knowledge: Quiz 5.

入出力結果(Terminal, IPython)

$ 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]: 1 + 2.0 + 3 # 6.0
Out[1]: 6.0

In [2]: _ # 6.0
Out[2]: 6.0

In [3]: type(_) # float
Out[3]: float

In [4]: quit()
$

0 コメント:

コメントを投稿