# string_length 函数

字符串的字符数。

## 怎么写

### string_length(text)

**text**

字符串。接受一个字符串。

## 示例

- $\displaystyle \operatorname{string\_length}(\text{hello world}) = 11$

  `string_length("hello world")`

  在求解器中，`string_length("hello world")` 的结果是 `11`。

  [在求解器中打开](https://zh.hilberon.com/?q=string_length%28%22hello%20world%22%29)

## 相关函数

- [to_string](https://zh.hilberon.com/library/to_string)

  把值写成字符串。
- [string_join](https://zh.hilberon.com/library/string_join)

  把字符串连接成一个。
- [is_string](https://zh.hilberon.com/library/is_string)

  判断一个值是否为字符串。

---
Source: https://zh.hilberon.com/library/string_length
