2016年10月27日
摘要: Any v = if(x>0) "xxxx" else 1; // 公共的超类 var v ={val a=b+b;val e = f+g;sqrt(a+e)} val name =readLine("you name:"); println("you age"); val age = readInt(); printLn("you name"````); ... 阅读全文
posted @ 2016-10-27 16:48 天之城 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 窗口cmd 命令 tab键会补全语法,相当于我的 ctrl+r 1.toString() // 产出字符串 “1” 1.to(10) // 输出{12345678910} = 1 to 10 BigInt.problePrime(100,Scala.util.Random); 随机数 “xuza”(3) // 输出 a “xuza”.ap... 阅读全文
posted @ 2016-10-27 15:32 天之城 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-10-27 14:36 天之城 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Path %scala_Home%\bin;%scala_Home%\jre\bin; classPath .;%scala_Home%\bin;%scala_Home%\lib\dt.jar;%scala_Home%\lib\tools.jar.; SCALA-HOME D:\Program Files\scala 阅读全文
posted @ 2016-10-27 13:47 天之城 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-10-27 12:15 天之城 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Object 是孤立的单例对象: 阅读全文
posted @ 2016-10-27 11:49 天之城 阅读(85) 评论(0) 推荐(0) 编辑
摘要: http://www.cocoachina.com/webapp/20150928/13600.html https://www.zhihu.com/question/23444167 http://blog.csdn.net/happyduoduo1/article/details/5183160 阅读全文
posted @ 2016-10-27 09:07 天之城 阅读(97) 评论(0) 推荐(0) 编辑