摘要: #scala ##函数式编程 ##1.基本语法 [修饰符] def 函数名 ( 参数列表 ) [:返回值类型] = { 函数体 } private def test( s : String ) : Unit = { println(s) } ##2.函数定义 ####无返回值,调用函数后不用prin 阅读全文
posted @ 2021-05-19 21:28 triumph丶xs 阅读(60) 评论(0) 推荐(0) 编辑