查看官方文档手册:链接:https://www.tslang.cn/docs/home.html (一)Boolean 最基本的数据类型就是简单的true/false值 The most basic datatype is the simple true/false value, which JavaScript and TypeScript call a boolean value. ex: let isDone: boolean = false; var isDone:boolean; //…
一.构造映射 val scores = Map("Jim"->10, ("Tom",20), "Sam"->44) //key->value, (key,value)两种方式表示, 不可变映射, val s = scala.collection.mutable.Map("Jim"->10, ("Tom",20), "Sam"->44)//可变映射 val s…