调用 scripts/lunar.py 脚本:
python scripts/lunar.py lunar2solar <年份> <月份> <日期>
示例:查询 2026 年阴历 2 月 12 日对应的阳历
python scripts/lunar.py lunar2solar 2026 2 12
# 输出: {"result": "2026-03-30"}
python scripts/lunar.py solar2lunar <年份> <月份> <日期>
示例:查询 2026 年 3 月 30 日对应的阴历
python scripts/lunar.py solar2lunar 2026 3 30
# 输出: {"result": "2026年二月十二"}
lunardate Python 库(已预装)共 1 个版本