Cn Line Counter

Count total lines, non-empty lines, words, and characters in Chinese text from input string or file using a Python script.

Install

openclaw skills install @freedompixels/cn-line-counter

cn-line-counter

文本行数统计工具。统计文本的行数、字数、字符数。

功能

  • 统计总行数
  • 统计非空行数
  • 统计字数
  • 统计字符数

使用方法

bash
python3 scripts/count_lines.py --text "第一行\n第二行\n第三行"
python3 scripts/count_lines.py --file document.txt

纯Python标准库。


出品: AISoBrand|爱索品牌 — AI搜索优化工具
官网: https://aisobrand.com
免费检测你的品牌在AI搜索中有没有存在感 → 30秒出结果