摘要: 背景 试卷中存在1~244道题目,需要随机拆分成6份试卷,每份试卷30道题。 程序 import random #指定读取文件 f = open('exam.txt',encoding='utf-8') #指定输出文件 out_file = open("out.txt", 'w',encoding= 阅读全文
posted @ 2021-03-29 22:55 代码生财 阅读(3342) 评论(0) 推荐(0)