cn-percentage-tool - 百分比计算器

# cn-percentage-tool - 百分比计算器

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cn-percentage-tool - 百分比计算器" with this command: npx skills add freedompixels/cn-percentage-tool

cn-percentage-tool - 百分比计算器

纯 Python 标准库实现的百分比计算工具。

功能

  • 百分比计算:计算 A 是 B 的百分之多少
  • 反向计算:已知百分比和部分,求整体
  • 比例计算:已知整体和百分比,求部分
  • 增减百分比:计算增长/下降百分比
  • 格式化输出:带千分位分隔符和精度控制

使用方式

# 百分比:A 是 B 的百分之几
python3 cn_percentage_tool.py percent 25 200
# 输出:12.5% (25 占 200 的百分比)

# 反向计算:已知百分比和部分,求整体
python3 cn_percentage_tool.py from-part 50 25
# 输出:200 (50 的 25% 是多少 → 50/0.25 = 200)

# 比例计算:已知整体和百分比,求部分
python3 cn_percentage_tool.py of-part 200 25
# 输出:50 (200 的 25% 是多少)

# 增减百分比:增长了多少
python3 cn_percentage_tool.py change 100 150
# 输出:50.0% (从 100 增长到 150)

# 格式化精度
python3 cn_percentage_tool.py percent 1 3 --precision 4
# 输出:33.3333%

技术说明

  • 纯 Python 标准库(argparse
  • 无外部依赖
  • 默认精度 2 位小数

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

YiHui GIT MONITOR

通用 Git 项目监控工具。支持 GitHub、GitLab、Gitee 等所有 Git 平台。可以添加、删除、检查任意 Git 仓库的更新,自动拉取代码并生成变更摘要。

Registry SourceRecently Updated
00Profile unavailable
Coding

Workspace Governance

A methodology-first workspace governance skill for AI agents. Focuses on principles, decision framework, and safe execution patterns instead of fixed directo...

Registry SourceRecently Updated
Coding

Nox Influencer - Creator Discovery & Influencer Marketing

Runs NoxInfluencer creator and marketing-ops workflows via CLI, including creator discovery for influencer marketing, creator marketing, UGC, social media ma...

Registry SourceRecently Updated
Coding

Gigo Lobster Doctor

🦞 GIGO · gigo-lobster-doctor: 环境体检模式:只检查 gateway、Python 依赖、题包链路与 PNG 证书能力,不跑正式试吃。 Triggers: 龙虾体检 / 检查龙虾环境 / lobster doctor / check lobster environment.

Registry SourceRecently Updated