반응형
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
- array
- Google Excel
- Github
- Tkinter
- PostgreSQL
- c#
- Excel
- Python
- Mac
- SQL
- 파이썬
- Java
- google apps script
- matplotlib
- PANDAS
- math
- string
- PySpark
- Kotlin
- numpy
- hive
- list
- Google Spreadsheet
- Apache
- dataframe
- django
- GIT
- Redshift
- gas
Archives
- Today
- Total
목록attribute (1)
달나라 노트
Kotlin - apply (객체의 attribute 변경하기)
Original source = play.kotlinlang.org/byExample/01_introduction/01_Hello%20world class PeopleInfo(var name: String, var age: Int) { // 1 constructor(): this("None", 0) } fun main() { val bella = PeopleInfo() // 2 println(bella.name) // 3 println(bella.age) // 3 bella.apply { // 4 name = "Bella" age = 25 } println(bella.name) // 5 println(bella.age) // 5 bella.apply { // 6 name = "Irene" } printl..
Kotlin
2021. 3. 16. 01:52