根据 excel 随机抽取一套试题,输出word文件,技术栈:node + node-xlsx + officegen + pkg。使用pkg将项目打包生成可执行程序。
🏠 Homepage
- 安装node.js最新版,网址链接:官网
- 在当前目录下,打开命令行执行,
npm i
方法一:
- 在当前目录下,打开命令行执行,
npm run dev
方法二:
- 双击执行
start.bat
方法三:
- 在当前目录下,打开命令行执行,
npm run build
生成随机生成试卷.exe
- 双击执行
随机生成试卷.exe
配置文件为 'config.json'
- ratio: 题库中 专业题数目 / 通用题数目。
例子:
为0.4 则 专业题占40%, 通用题占60%。
为0 则 全部为通用题。 为1 则 全部为专业题。 - singleChoice: 单选题个数
- multipleChoice: 不定项选择题个数
- booleanQuestion: 判断题个数
👤 hecun
- Website: http://hecun.site
- Github: @hecun0000
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!