1.内置数字类型: 2.float:单精度 double:双精度 3.Kotlin 中的数字没有隐式拓宽转换。 例如,具有 Double 参数的函数只能对 Double ...

IP属地:广东
1.内置数字类型: 2.float:单精度 double:双精度 3.Kotlin 中的数字没有隐式拓宽转换。 例如,具有 Double 参数的函数只能对 Double ...
1.创建 DTOs(POJOs/POCOs): data class Customer(val name: String, val email: String) 这个操作会为...
1.在 Kotlin 中, if 也可以用作表达式:fun maxOf(a: Int, b: Int) = if (a > b) a else b 2.当某个变量的值可以为 ...