MCPcopy Create free account
hub / github.com/7BEII/Comfyui_PDuse / count_lines

Method count_lines

py/text_JoinStringMultiLine.py:73–82  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

71 CATEGORY = "PD Nodes"
72
73 def count_lines(self, text):
74 # text 现在是一个列表 (list)
75 if not text:
76 return (0,)
77
78 # 获取列表长度 (即 Batch Size / 项目总数)
79 # 这样输入 3 个文件名时,就会直接返回 int 3
80 count = len(text)
81
82 return (count,)
83
84# --------------------------------------------------------------------------------
85# 节点注册映射

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected