您需要将自己定义为 .format(n) 的功能 fun Double.format(digits: Int) = java.lang.String.format("%.${digits}f", this). 目前Kotlin显然缺少一些功能,我们会修复 ...
確定! 回上一頁