開発環境
- OS X Mavericks - Apple(OS)
- Emacs (CUI)、BBEdit - Bare Bones Software, Inc. (GUI) (Text Editor)
- Python (プログラミング言語)
Learning Python (Mark Lutz (著)、Oreilly & Associates Inc)のPART II.(Types and Operations)、Test Your Knowledge: Part II Exercises、10.(Nesting)を解いてみる。
その他参考書籍
10.(Nesting)
入出力結果(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. >>> {'name':'kamimura', 'language':['Japanese', 'English'], 'programming':['python', 'c', 'scheme', 'dart', 'haskell'], 'birth':(2000, 1, 2)} {'language': ['Japanese', 'English'], 'birth': (2000, 1, 2), 'name': 'kamimura', 'programming': ['python', 'c', 'scheme', 'dart', 'haskell']} >>> personal_info = {'name':'kamimura', 'language':['Japanese', 'English'], 'programming':['python', 'c', 'scheme', 'dart', 'haskell'], 'birth':(2000, 1, 2)} >>> personal_info['name'] 'kamimura' >>> personal_info['language'] ['Japanese', 'English'] >>> personal_info['programming'] ['python', 'c', 'scheme', 'dart', 'haskell'] >>> personal_info['birth'] (2000, 1, 2) >>> quit() $
0 コメント:
コメントを投稿