摘要:
想知道什么差别,把代码复制下来运行看结果 阅读全文
posted @ 2018-07-15 23:58
好吧,就是菜菜
阅读(261)
评论(0)
推荐(0)
|
摘要:
最高的父类型为Any,最低类型为Nothing Any is the supertype of all types, also called the top type. It defines certain universal methods such as equals, hashCode, an 阅读全文
posted @ 2018-07-15 22:53
好吧,就是菜菜
阅读(342)
评论(0)
推荐(0)
摘要:
val和var的区别 val是值,不可变 var是变量,可变 函数只是过程,函数定义语法 [var-val] = (paramName:paramType,paramName:paramType) => process 方法,方法和函数类型,有以下不用 使用def 关键字定义,有名字,有参数列表,有 阅读全文
posted @ 2018-07-15 22:22
好吧,就是菜菜
阅读(146)
评论(0)
推荐(0)
|