🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### **[硬关键字](http://www.kotlincn.net/docs/reference/keyword-reference.html#硬关键字)** 以下符号会始终解释为关键字,不能用作标识符 * `as` * 用于[类型转换](http://www.kotlincn.net/docs/reference/typecasts.html#不安全的转换操作符) * 为[导入指定一个别名](http://www.kotlincn.net/docs/reference/packages.html#导入) * `as?`用于[安全类型转换](http://www.kotlincn.net/docs/reference/typecasts.html#安全的可空转换操作符) * `break`[终止循环的执行](http://www.kotlincn.net/docs/reference/returns.html) * `class`声明一个[类](http://www.kotlincn.net/docs/reference/classes.html) * `continue`[继续最近层循环的下一步](http://www.kotlincn.net/docs/reference/returns.html) * `do`开始一个[do/while 循环](http://www.kotlincn.net/docs/reference/control-flow.html#while-循环)(后置条件的循环) * `else`定义一个[if 表达式](http://www.kotlincn.net/docs/reference/control-flow.html#if-表达式)条件为 false 时执行的分支 * `false`指定[布尔类型](http://www.kotlincn.net/docs/reference/basic-types.html#布尔)的“假”值 * `for`开始一个[for 循环](http://www.kotlincn.net/docs/reference/control-flow.html#for-循环) * `fun`声明一个[函数](http://www.kotlincn.net/docs/reference/functions.html) * `if`开始一个[if 表达式](http://www.kotlincn.net/docs/reference/control-flow.html#if-表达式) * `in` * 指定在[for 循环](http://www.kotlincn.net/docs/reference/control-flow.html#for-循环)中迭代的对象 * 用作中缀操作符以检查一个值属于[一个区间](http://www.kotlincn.net/docs/reference/ranges.html)、 一个集合或者其他[定义“contains”方法](http://www.kotlincn.net/docs/reference/operator-overloading.html#in)的实体 * 在[when 表达式中](http://www.kotlincn.net/docs/reference/control-flow.html#when-表达式)用于上述目的 * 将一个类型参数标记为[逆变](http://www.kotlincn.net/docs/reference/generics.html#声明处型变) * `!in` * 用作中缀操作符以检查一个值**不**属于[一个区间](http://www.kotlincn.net/docs/reference/ranges.html)、 一个集合或者其他[定义“contains”方法](http://www.kotlincn.net/docs/reference/operator-overloading.html#in)的实体 * 在[when 表达式中](http://www.kotlincn.net/docs/reference/control-flow.html#when-表达式)用于上述目的 * `interface`声明一个[接口](http://www.kotlincn.net/docs/reference/interfaces.html) * `is` * 检查[一个值具有指定类型](http://www.kotlincn.net/docs/reference/typecasts.html#is-与-is-操作符) * 在[when 表达式中](http://www.kotlincn.net/docs/reference/control-flow.html#when-表达式)用于上述目的 * `!is` * 检查[一个值**不**具有指定类型](http://www.kotlincn.net/docs/reference/typecasts.html#is-与-is-操作符) * 在[when 表达式中](http://www.kotlincn.net/docs/reference/control-flow.html#when-表达式)用于上述目的 * `null`是表示不指向任何对象的对象引用的常量 * `object`同时声明[一个类及其实例](http://www.kotlincn.net/docs/reference/object-declarations.html) * `package`指定[当前文件的包](http://www.kotlincn.net/docs/reference/packages.html) * `return`[从最近层的函数或匿名函数返回](http://www.kotlincn.net/docs/reference/returns.html) * `super` * [引用一个方法或属性的超类实现](http://www.kotlincn.net/docs/reference/classes.html#调用超类实现) * [在次构造函数中调用超类构造函数](http://www.kotlincn.net/docs/reference/classes.html#继承) * `this` * 引用[当前接收者](http://www.kotlincn.net/docs/reference/this-expressions.html) * [在次构造函数中调用同一个类的另一个构造函数](http://www.kotlincn.net/docs/reference/classes.html#构造函数) * `throw`[抛出一个异常](http://www.kotlincn.net/docs/reference/exceptions.html) * `true`指定[布尔类型](http://www.kotlincn.net/docs/reference/basic-types.html#布尔)的“真”值 * `try`[开始一个异常处理块](http://www.kotlincn.net/docs/reference/exceptions.html) * `typealias`声明一个[类型别名](http://www.kotlincn.net/docs/reference/type-aliases.html) * `val`声明一个只读[属性](http://www.kotlincn.net/docs/reference/properties.html)或[局部变量](http://www.kotlincn.net/docs/reference/basic-syntax.html#定义变量) * `var`声明一个可变[属性](http://www.kotlincn.net/docs/reference/properties.html)或[局部变量](http://www.kotlincn.net/docs/reference/basic-syntax.html#定义变量) * `when`开始一个[when 表达式](http://www.kotlincn.net/docs/reference/control-flow.html#when-表达式)(执行其中一个给定分支) * `while`开始一个[while 循环](http://www.kotlincn.net/docs/reference/control-flow.html#while-循环)(前置条件的循环)