| 功能 | 触发场景 |
|---|---|
| ------ | --------- |
| 自动组卷生成PDF | "出一套信息学奥赛试卷" / "生成考试卷" |
| 题库管理 | "添加题目" / "查看题库" / "加题" |
| 错题追踪 | "记一下错题" / "查看错题" / "复习错题" |
| 扩展学科 | 新学科题库JSON,支持数学、英语等 |
所有题库和错题数据存储在 ~/.qclaw/workspace/exam-data/:
questions/ — 题库JSON文件(按学科命名,如 informatics.json)errors/ — 错题记录JSON文件(如 informatics_errors.json)用户说"出一套信息学奥赛试卷"或"组卷"时:
```
python -X utf8
```
```
python -X utf8
```
python -X utf8 /scripts/manage_bank.py init python -X utf8 /scripts/manage_bank.py list --subject informatics python -X utf8
python -X utf8 /scripts/manage_bank.py random --subject informatics --count 10 python -X utf8 /scripts/manage_bank.py error-add python -X utf8 /scripts/manage_bank.py error-list --subject informatics python -X utf8 /scripts/manage_bank.py error-mark 题目JSON格式(添加到题库):
{
"subject": "informatics",
"questions": [
{
"id": "info_016",
"type": "choice",
"topic": "python",
"difficulty": 1,
"text": "题目内容( )。",
"options": ["A. 选项1", "B. 选项2", "C. 选项3", "D. 选项4"],
"answer": "B",
"answer_desc": "简短答案",
"explanation": "解析说明"
}
]
}
题目类型(type):
choice — 选择题(需有options字段)judgment — 判断题(answer为"✓ 正确"或"✗ 错误")programming_fill — 编程填空题(需有code和fills字段)知识点(topic)参考:references/informatics.md
exam-data/questions/ 创建新学科JSON(如 math.json)math_001)manage_bank.py add math_questions.json 导入--subject math考试格式配置参考:references/exam-formats.md
python -X utf8 运行(Windows编码兼容)< 和 > 会在PDF渲染时自动转义clawhub install exam-paper共 1 个版本