Kotlin 条件控制IF 表达式一个if 语句包含一个布尔表达式和一条或多条语句。 // 传统用法var max = a if (a < b) max = b // 使用else var max: Int if (a > b) { max ...
確定! 回上一頁