会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tootooquan
博客园
首页
新随笔
联系
订阅
管理
2022年5月29日
【def函数+基础声明】
摘要: 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)
公告