摘要:
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"````); ... 阅读全文
摘要:
窗口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... 阅读全文
摘要:
阅读全文
摘要:
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 阅读全文
摘要:
阅读全文
摘要:
Object 是孤立的单例对象: 阅读全文
摘要:
http://www.cocoachina.com/webapp/20150928/13600.html https://www.zhihu.com/question/23444167 http://blog.csdn.net/happyduoduo1/article/details/5183160 阅读全文