1. 方法
Scala 中使用 def 语句定义方法, val 语句定义函数。
定义方法的通用格式 :def functionName ([参数列表]) : [return type] = { 方法体 } 。
如果一个方法有返回值,方法
2020-04-05