simple-calculator

Other

简易命令行计算器,支持加减乘除和幂运算。Use this skill when user needs to do math calculations.

Install

openclaw skills install simple-calculator

Simple Calculator

概述

极简命令行计算器,支持基本四则运算和幂运算。

核心命令

python3 scripts/calc.py "3 + 2"
python3 scripts/calc.py "10 / 4"
python3 scripts/calc.py "2 ** 10"

支持运算

运算符号示例
+5 + 3 → 8
-10 - 4 → 6
*3 * 7 → 21
/10 / 3 → 3.3333
**2 ** 8 → 256
取余%10 % 3 → 1

验证

python3 scripts/calc.py "1 + 1"
# 输出: 2