2014年2月18日火曜日

開発環境

Learning Python (Mark Lutz (著)、Oreilly & Associates Inc)のPART II.(Types and Operations)、Test Your Knowledge: Part II Exercises、4.(Tuple assignment)を解いてみる。

その他参考書籍

4.(Tuple assignment)

入出力結果(Terminal)

$ python3
Python 3.3.4 (default, Feb 10 2014, 22:06:52) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> x='spam'
>>> y='eggs'
>>> x, y = y, x
>>> x # eggs
'eggs'
>>> y # spam
'spam'
>>> quit()
$

0 コメント:

コメントを投稿