From b2ddea4c5c2b02e46e469e0b7d1cd2c6ce281fd3 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Sun, 11 Feb 2024 21:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E9=9B=86=E4=BD=BF=E7=94=A8=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=8A=9F=E8=83=BD=E7=9A=84=E8=AE=BE=E7=BD=AE=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=88=B0config.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/收集使用记录.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/工具v2/收集使用记录.py b/工具v2/收集使用记录.py index 1cac4c9e..68fadc36 100644 --- a/工具v2/收集使用记录.py +++ b/工具v2/收集使用记录.py @@ -1,12 +1,14 @@ -zipfilepath = r"C:\Users\weiye\Downloads\可选_222816958193934270733_基础赋能卷9_高三_数学.zip" -# zipfilepath = r"D:\temp\222817041862672707412_控江中学2023学年第一学期高一数学期末考试_高一_数学.zip" -date = "20240118" -threshold = 0.75 #设置最低提交人数比例 - - from database_tools import * import zipfile,shutil +configjson = load_dict("文本文件/config.json")["收集使用记录.py"] + + +zipfilepath = configjson["zip文件路径"] +date = configjson["日期"] +threshold = configjson["提交人数比例最小值"] + + tempdir = "临时文件/zips" statsfilename = "小题分_按学号(数学).xlsx" answersheetseekingpath = "../备课组"