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
- 책리뷰
- 나는리뷰어다
- feed-forward
- LLM
- AWS
- 파이썬
- kubernetes context
- Python
- Shell
- Gemma
- Fine-Tuning
- docker
- csv
- palindrome
- Git
- go
- K8S
- 한빛미디어
- Algorithm
- BASIC
- kubens
- Binary
- Container
- leetcode
- 키보드
- lllm
- book
- error
- Kubernetes
- collator
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
반응형