← 返回
未分类

Cn Line Counter

Count total lines, non-empty lines, words, and characters in Chinese text from input string or file using a Python script.
使用 Python 脚本统计中文文本(来自输入字符串或文件)的总行数、非空行数、词数和字符数。
freedompixels freedompixels 来源
未分类 clawhub v1.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 293
下载
💾 0
安装
2
版本
#latest

概述

cn-line-counter

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

功能

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

使用方法

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

纯Python标准库。


出品: AISoBrand|爱索品牌 — AI搜索优化工具

官网: https://aisobrand.com

免费检测你的品牌在AI搜索中有没有存在感 → 30秒出结果

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-06-07 12:53
  • v1.0.0
    2026-05-21 14:58 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,173
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 687 📥 331,436
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,309