# BT.has

## 功能

判断当前解释器是否内置某项能力。

## 语法

```bt
BT.has(name)
```

## 参数

| 参数 | 类型 | 必填 | 默认值 | 说明 |
| ------ | ------ | ------ | ------ | ------ |
| name | String | 是 | 无 | 能力名，例如 web、desktop、net、process。 |

## 返回值

| 类型 | 说明 |
| ------ | ------ |
| Bool | 能力存在时返回 true，否则返回 false。 |

## 示例

```bt
result = BT.has('process')

// 输出：true
print result
```

## 注意事项

- 能力检测不启动服务，不打开设备，也不做运行期扫描。
- 能力名使用小写 snake_case 或小写单词。
