版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chen18677338530/article/details/91418216
object TypeDemo1 {
def main(args: Array[String]): Unit = {
var num1:Int = 10
println(num1.toDouble + "\t" + num1.toString + 100.toDouble)
}
}
运行结果: