把半圆量角器画成 SVG,内外圈刻度一应俱全:可以出“读角度”和“画角度”两类题,直接生成可打印的 A4 练习纸,答案另起一页。
pip install -e .只需要 Python 3.9+,零第三方依赖。
# 生成 8 道读角 / 画角混合练习,附答案
protractor sheet --count 8 --answers -o sheet.html
# 只出读角题,角度限定在 30–150 度
protractor sheet --kinds read --min 30 --max 150 -o read.html
# 输出单个 60° 的量角器 SVG
protractor draw 60 -o angle.svg
# 判断角的类型
protractor classify 120
# 120° 是钝角- 0–180° 半圆量角器,1°/5°/10° 三级刻度线
- 内外双圈读数,可单独输出内圈或外圈
- 读角题自动画出角的终边,画角题只给空白量角器
- 角度分类:零角、锐角、直角、钝角、平角
- 题目去重、支持随机种子复现
- 输出 A4 打印样式,题目卡片自动分栏,答案单独一页
python -m unittest discover -s tests -vMIT © 2026 eastyou