일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- GIT
- c#
- Github
- numpy
- google apps script
- Tkinter
- django
- Java
- gas
- Kotlin
- SQL
- Redshift
- PANDAS
- hive
- Apache
- Excel
- string
- Mac
- Google Excel
- Google Spreadsheet
- PySpark
- matplotlib
- Python
- array
- PostgreSQL
- math
- list
- 파이썬
- dataframe
- Today
- Total
목록VALUE (2)
달나라 노트
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(..
Original source = play.kotlinlang.org/byExample/01_introduction/01_Hello%20world Kotlin에는 Map이라는 collection이 있습니다. 결론부터 말하자면 Python의 dictionary와 비슷합니다. Key = Value가 하나의 쌍(pair)이 되고 이 쌍이 하나의 Map에 여러 개 존재할 수 있습니다. 다음 예시를 보시죠. var map_test: MutableMap = mutableMapOf( // 1 "Apple" to 1, "Strawberry" to 2, "Pineapple" to 3, "Orange" to 4 ) var map_test_2: Map = mapOf( // 2 1 to 10, 2 to 20, 3 to 18, ..