360 Secure SkillHub
360 安全技能中心

Cn Tip Calculator

根据账单金额、小费百分比和分账人数计算小费、含小费总额及每人应付金额,支持常见比例和自定义比例,使用 Python 标准库运行。

分类:生活
freedompixels
freedompixels
热度 32.21
最近更新 2026-06-07 10:36:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add freedompixels/cn-tip-calculator
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
slug
cn-tip-calculator
name
Tip Calculator
version
1.0.0
description
Calculate tips and split bills. Support custom tip percentages, bill splitting, and currency formatting. Pure Python standard library, no API key required.
keywords
tip, calculator, bill, split, restaurant, gratuity
license
MIT-0
tags
["tools"]

Tip Calculator

Calculate tips and split bills at restaurants.

Features

  • Calculate tip amount from bill total and percentage
  • Split bills among multiple people
  • Common tip percentages (15%, 18%, 20%, 25%)
  • Custom tip percentage support
  • Pure Python, no external dependencies

Usage

python3 scripts/tip_calculator.py --bill 85.50 --tip 18
python3 scripts/tip_calculator.py --bill 120.00 --tip 20 --split 4

Output

Returns tip amount, total, and per-person amount when splitting.


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