반응형
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 | 31 |
Tags
- array
- gas
- Tkinter
- Github
- Apache
- 파이썬
- Google Spreadsheet
- c#
- Kotlin
- Python
- Java
- django
- numpy
- dataframe
- list
- Redshift
- SQL
- Mac
- PostgreSQL
- matplotlib
- GIT
- PySpark
- Excel
- PANDAS
- hive
- google apps script
- math
- string
- Google Excel
Archives
- Today
- Total
목록getValue (1)
달나라 노트
Kotlin - Map collection
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, ..
Kotlin
2021. 3. 15. 04:20