반응형
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 |
Tags
- PySpark
- gas
- Excel
- Java
- math
- c#
- numpy
- matplotlib
- Google Excel
- Github
- Apache
- PostgreSQL
- Tkinter
- hive
- PANDAS
- SQL
- Python
- Kotlin
- GIT
- django
- dataframe
- array
- list
- 파이썬
- google apps script
- Redshift
- Google Spreadsheet
- Mac
- string
Archives
- Today
- Total
목록attribute change (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