题库格式
JSON 格式(推荐)
{
"name": "示例题库",
"questions": [
{
"type": "single",
"question": "1 + 1 = ?",
"options": ["1", "2", "3", "4"],
"answer": "B",
"explanation": "基础算术"
},
{
"type": "multiple",
"question": "以下哪些是偶数?",
"options": ["1", "2", "4", "5"],
"answer": ["B", "C"]
},
{
"type": "judge",
"question": "地球是圆的。",
"answer": true
},
{
"type": "fill",
"question": "中国的首都是?",
"answer": ["北京", "北京市"]
}
]
}
type 支持 single / multiple / judge / fill;答案可用选项字母或从 0 开始的索引;填空题 answer 可写多个可接受答案。
Excel 格式(.xlsx / .xls)
第一个工作表,表头与 CSV 相同:
type | question | optionA | optionB | optionC | optionD | answer | explanation
single | 1+1=? | 1 | 2 | 3 | 4 | B | 基础算术
multiple | 以下哪些是偶数? | 1 | 2 | 4 | 5 | A|C | 选项字母用竖线分隔
judge | 地球是圆的。 | | | | | 对 |
fill | 中国的首都是? | | | | | 北京|北京市 |
第一个工作表会被读取;支持 type/question/optionA~optionF/answer/explanation 列,中文表头也兼容。
CSV 格式
type,question,optionA,optionB,optionC,optionD,answer,explanation
single,1+1=?,1,2,3,4,B,基础算术
multiple,以下哪些是偶数?,1,2,4,5,A|C,选项字母用竖线分隔
judge,地球是圆的。,,,,,对,
fill,中国的首都是?,,,,,北京|北京市,
表头至少需要 type、question、answer;选项列支持 optionA~optionF;解析可选。