摘要: def 函数名称(参数列表):函数返回值类型={函数体} def looper(x: Long, y: Long): Long = { var a = x var b = y while (a != 0) { val temp = a a = b % a b = temp } //返回值 b } 若 阅读全文
posted @ 2022-05-29 17:59 tootooquan 阅读(107) 评论(0) 推荐(0)