emzei

  • Tag
  • Medialog
  • Location
  • Guestbook
  • Admin
  • Write

DICTIONARY 2

Properties of Dictionary

ex.element = { 'hydro':1, 'helium':2, 'carbon':6} - key에 따른 value가 있음.- 순서가 없음- 기존의 list lookup/update와 다른 방식 ex. >>> print element{'carbon': 6, 'helium': 2, 'hydro': 1} >>> print element['hydro']1 // 'hydro'의 value가 출력 >>> print element['oxyzen']Traceback (most recent call last): File "", line 1, in print element['oxyzen']KeyError: 'oxyzen'// key가 존재하지 않을 경우 : error >>> element['carbon']=12// k..

Computers/Language python 2012.03.14

String vs. List vs. Dictionary

String : 'hello'- sequence of character- immutableerror : s[i] = 'x'- s[i] : i th character in s List : ['alpha', 23]- list of elements- mutable- p[i] : i th element of p Dictionary : { 'hydrogen':1 , 'helium' : 23 }- set of pairs- mutable- d[k] : k : keyvalue associated with k in d

Computers/Language python 2012.03.14
이전
1
다음
더보기
  • 분류 전체보기 (221)
    • Daily (7)
    • Multi-V (8)
    • NOWS (53)
      • ULK (3)
      • SICP (5)
      • Perl (7)
      • Logic Circuit (0)
      • Automata (2)
      • Eng.study (4)
      • C O D E (0)
      • Language C, C++ (2)
      • Linear Algebra (0)
      • Statistics (0)
      • Data Communication (0)
      • MEMO (19)
      • Security (10)
      • Operating Systems (1)
    • Computers (153)
      • Adv. Linux System Pr.. (9)
      • Algorithm (10)
      • Android (10)
      • Computer Architectur.. (4)
      • Data Structure (13)
      • Databases (12)
      • Language python (23)
      • Linux System Program.. (16)
      • Language java (17)
      • Programming Language (9)
      • Raspberry-pi (5)
      • SW Engineering (9)
      • Xen (6)
      • (한빛) 컴퓨터개론 (10)

Tag

domu, 자료구조, string, Android, xen guest installation, Data Structure, Tree, layout, xen 4.4, inheritance, list, GUI, XEN, interface, protected, DICTIONARY, polymorphism, Python, java, xen compile,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • emzei[엠제이]

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/03   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바