Kotlin 01 简单程序 变量 容器 2025-11-19 14:37 | 我推Kotlin天下第一🎀,计科宅男你崛起吧👋 ## 1 简单的Kotlin程序 ```kotlin fun main() { println("HelloWorld!") // System:HelloWorld! } ``` 这个简单程序刻画了Kotlin程序的基本结构: - `fun` 关键字用于定义一个函数 - 名为 `main` 的函数是整个程序的入口 - `println` 语句的作…