IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    AI随笔-scala(1)

    u010255642发表于 2018-10-10 11:50:06
    love 0
    object learn { def main(args: Array[String]): Unit = { println(myPower(2,4)) } @annotation.tailrec def myPower(x:Int,n:Int,t:Int=1):Int={ if (n<1) t else myPower(x,n-1,x*...


沪ICP备19023445号-2号
友情链接