type
type
功能
返回值的脚本可见类型名。
语法
type(value)
参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| value | Any | 否 | Empty | 要读取类型的值。 |
返回值
| 类型 | 说明 |
|---|---|
| String | 返回类型名称。 |
示例
result = type('BT') // 输出:String print result
注意事项
- 未传参数时返回 Empty。
返回值的脚本可见类型名。
type(value)
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| value | Any | 否 | Empty | 要读取类型的值。 |
| 类型 | 说明 |
|---|---|
| String | 返回类型名称。 |
result = type('BT') // 输出:String print result