📦 中文词数统计器

v1.0.0

中文文本字数统计工具。统计字数、字符数、行数。纯Python标准库,无需API Key。

0· 0·0 当前·0 累计
0

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install cn-word-counter
镜像加速npx clawhub@latest install cn-word-counter --registry https://cn.longxiaskill.com

技能文档

cn-word-counter — 文本字数统计工具 核心功能 统计文本的字数、字符数、行数。

使用方式 python3 scripts/word_counter.py "要统计的文本内容"

脚本说明 scripts/word_counter.py count_words(text: str) → dict: 返回 {words, chars, lines}

输出示例 { "words": 125, "chars": 256, "lines": 8 }

数据来源ClawHub ↗ · 中文优化:龙虾技能库