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