Python dictionary는 Key - value 포맷으로 데이터를 저장합니다. Java에서는 hashmap / hashtable 과 유사합니다. Create dictionary d = { 'test2':222, 'test1':111, 'test6':666, 'test5':555, 'test3':333, 'test4':444 } d2 = dict([ ('test2',222), ('test1',111), ('test6',666), ('test5',555), ('test3',333), ('test4',444) ]) >>> print(f'd is {type(d)}') >>> print(f'd2 is {type(d2)}') # Print d is d2 is Accessing data >>> d['test2..
Development/Python
2020. 8. 31. 23:39
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- book
- error
- BASIC
- collator
- palindrome
- Kubernetes
- Fine-Tuning
- lllm
- LLM
- kubernetes context
- 나는리뷰어다
- K8S
- docker
- Python
- 키보드
- feed-forward
- Git
- Shell
- Binary
- AWS
- leetcode
- Container
- go
- Gemma
- 책리뷰
- Algorithm
- kubens
- 한빛미디어
- csv
- 파이썬
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
반응형