반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- hive
- list
- Apache
- Java
- Mac
- google apps script
- Google Excel
- PostgreSQL
- c#
- Redshift
- matplotlib
- PySpark
- math
- Kotlin
- numpy
- 파이썬
- SQL
- Github
- GIT
- Python
- array
- Google Spreadsheet
- Tkinter
- string
- PANDAS
- django
- Excel
- gas
- dataframe
Archives
- Today
- Total
목록Items (1)
달나라 노트
Python Basic : dictionary values(), keys(), items() (dictionary key 얻기, dictionary value 얻기, dictionary item 얻기)
Syntax dictionary.keys() dictionary에 존재하는 모든 key를 return 합니다. dictionary.values() dictionary에 존재하는 모든 value를 return 합니다. dictionary.items() dictionary를 구성하는 모든 key, value 값을 tuple로 묶어서 return 합니다. 예시를 봅시다. dict_test = { 'key1': 1, 'key2': 2, 'key3': 3 } print(dict_test.keys()) -- Result dict_keys(['key1', 'key2', 'key3']) - dict_test.keys() dict_test에 keys() method를 적용했습니다. 그 결과 값을 보니 dict_keys(..
Python/Python Basic
2022. 10. 11. 00:56