일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Mac
- list
- hive
- PySpark
- GIT
- Redshift
- Tkinter
- Google Spreadsheet
- Python
- numpy
- matplotlib
- c#
- Kotlin
- PANDAS
- Google Excel
- string
- google apps script
- PostgreSQL
- array
- Github
- django
- math
- Apache
- 파이썬
- SQL
- Excel
- Java
- gas
- dataframe
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
repeat 함수는 어떤 문자열을 주어진 횟수만큼 반복합니다. 또는 어떤 함수를 주어진 횟수만큼 반복하게 되죠. fun main() { println("A".repeat(5)) // 1 repeat(5) { // 2 print("B") } } -- Result AAAAA BBBBB 1. A라는 문자열을 5번 반복하여 이어붙입니다. 따라서 AAAAA가 출력됩니다. 2. B라는 문자열을 출력하는 print("B") 함수를 5번 실행합니다.
https://developer.android.com/studio Android application 개발을 위해선 먼저 Android studio를 설치해야 합니다. 위 링크로 가서 설치를 진행합시다. 설치 관련 자세한 내용은 아래 링크를 참조합시다. developer.android.com/codelabs/basic-android-kotlin-training-install-android-studio?hl=ko&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-two%3Fhl%3Dko%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbas..
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..
Original source = play.kotlinlang.org/byExample/01_introduction/01_Hello%20world Kotlin에는 lambda function이라는 것을 제공합니다. 무엇인지부터 말씀드리면 일반적으로 함수를 생성하고 사용하는 단계인 1. 변수를 생성 2. 어떤 parameter 값을 받아 특정 로직을 적용하는 함수 구현 3. 함수의 reutrn 값을 변수에 assign 위 세 단계를 단 한줄로 적을 수 있는 기능입니다. fun main() { var plus2: (Int) -> Int = {x: Int -> x * 2} // 1 println(plus2(2)) var multiply3: (Int) -> Int = {y: Int -> y * 3} // 2 pr..