🌈 搜索
📅  最后修改于: 2022-03-11 14:53:32.330000             🧑  作者: Mango
fun main() { val x = 1 val square = when (x) { 1 -> 1 2 -> 4 3 -> 9 else -> 0 } println(square) }