摘要: 摘自官网 variables var x = 5 Good x = 6 Variable. val x = 5 Bad x = 6 Constant. var x: Double = 5 Explicit type. functions Good def f(x: Int) = { x * x } 阅读全文
posted @ 2019-11-26 14:25 我是属车的 阅读(240) 评论(0) 推荐(0) 编辑