题库数据生成器

主要将doc文档中的题目,提取并生成json格式的题库数据。

JSON结构规范

题库索引

{
  "title": "第一章 毛泽东思想及其历史地位",
  "radio": 30,
  "multiple": 18,
  "decide": 12,
  "fill": 0,
  "data": "1.json"
}
字段 说明
title 题库标题
radio 单选题数量
multiple 多选题数量
decide 判断题数量
fill 填空题数量
data 题目数据文件名

注意事项

单个题目

{
  "options": [
    "粟裕",
    "aaa",
    "bbb",
  ],
  "question": "下面哪一位是共和国十大将军之一(  )",
  "answer": 0,
  "type": 0
}
属性 类型 说明
options string[] 或 int[] 选项
question string 题目
answer int[] 答案
type int 题目类型

注意事项

  • answer:可能是数组,也可能是单个数字。
  • type:0为单选,1为多选,2为填空,3为判断

GitHub

View Github