> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-matt-router-pricing-pika-and-guard.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# StringLength - ComfyUI Built-in Node Documentation

> StringLength 节点用于计算文本字符串中的字符数。

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`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.