> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# StringLength - ComfyUI Built-in Node Documentation

> Complete documentation for the StringLength node in ComfyUI. Learn its inputs, outputs, parameters and usage.

此文档由 AI 生成。如发现任何错误或有改进建议，欢迎随时贡献！[在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StringLength/en.md)

StringLength 节点用于计算文本字符串中的字符数。它接受任意文本输入，并返回字符总数，包括空格和标点符号。这对于测量文本长度或验证字符串大小要求非常有用。

## 输入

| 参数    | 描述                  | 数据类型   | 是否必填 | 范围  |
| ----- | ------------------- | ------ | ---- | --- |
| `字符串` | 要测量长度的文本字符串。支持多行输入。 | STRING | 是    | N/A |

## 输出

| 输出名称 | 描述                     | 数据类型 |
| ---- | ---------------------- | ---- |
| `长度` | 输入字符串中的字符总数，包括空格和特殊字符。 | INT  |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StringLength/zh.md)

***

**Source fingerprint (SHA-256):** `dd72fac8330002e5e0ef2673ff208de36c6cf31aeec22a1c231495c742df62e3`
