在Kotlin 中,除了表达式的值,有返回值的函数都要求显式使用return 语句返回其值。代码示例如下: fun max(a: Int, b: Int): Int { if (a > b) ...
確定! 回上一頁