运行 ❯
获取您
自有的
网站
×
更改方向
更改主题,深色/浅色
转到 Spaces
fun main() { val day = 4 val result = when (day) { 1 -> "Monday" 2 -> "Tuesday" 3 -> "Wednesday" 4 -> "Thursday" 5 -> "Friday" 6 -> "Saturday" 7 -> "Sunday" else -> "Invalid day." } println(result) }
星期四