From c6a0fc5dbcd39ce43b5c4f0e83ac3a40ddf5ddda Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Sat, 15 Apr 2023 13:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B914812=E9=A2=98=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具/latex界面修改题目内容.py | 2 +- 工具/关键字筛选题号.py | 2 +- 工具/文本文件/题号筛选.txt | 2 +- 工具/讲义生成.py | 4 ++-- 工具/试卷答案生成.py | 2 +- 题库0.3/Problems.json | 5 +++-- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/工具/latex界面修改题目内容.py b/工具/latex界面修改题目内容.py index 235b140c..d1978de2 100644 --- a/工具/latex界面修改题目内容.py +++ b/工具/latex界面修改题目内容.py @@ -1,6 +1,6 @@ import os,re,json """这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭""" -problems = "15056" +problems = "14812" editor = "王伟叶" def generate_number_set(string,dict): diff --git a/工具/关键字筛选题号.py b/工具/关键字筛选题号.py index 06b363da..084420b5 100644 --- a/工具/关键字筛选题号.py +++ b/工具/关键字筛选题号.py @@ -2,7 +2,7 @@ import os,re,json """---设置关键字, 同一field下不同选项为or关系, 同一字典中不同字段间为and关系, 不同字典间为or关系, _not表示列表中的关键字都不含, 同一字典中的数字用来供应同一字段不同的条件之间的and---""" keywords_dict_table = [ - {"origin":[r"2023"],"origin3":[r"杨浦"]} + {"origin":[r"2023"],"origin3":[r"虹口"],"origin4":[r"二模"]} ] """---关键字设置完毕---""" # 示例: keywords_dict_table = [ diff --git a/工具/文本文件/题号筛选.txt b/工具/文本文件/题号筛选.txt index 27e1f592..e5ee1cbf 100644 --- a/工具/文本文件/题号筛选.txt +++ b/工具/文本文件/题号筛选.txt @@ -1 +1 @@ -012033,012034,012035,012036,012037,012038,012039,012040,012041,012042,012043,012044,012045,012046,012047,012048,012049,012050,012051,012052,012053,012487,012488,012489,012490,012491,012492,012493,012494,012495,012496,012497,012498,012499,012500,012501,012502,012503,012504,012505,012506,012507,014784,014785,014786,014787,014788,014789,014790,014791,014792,014793,014794,014795,014796,014797,014798,014799,014800,014801,014802,014803,014804,031208 \ No newline at end of file +015101,015102,015103,015104,015105,015106,015107,015108,015109,015110,015111,015112,015113,015114,015115,015116,015117,015118,015119,015120,015121 \ No newline at end of file diff --git a/工具/讲义生成.py b/工具/讲义生成.py index 7f9d6bc4..19373d19 100644 --- a/工具/讲义生成.py +++ b/工具/讲义生成.py @@ -10,7 +10,7 @@ paper_type = 2 # 随后设置一下后续的讲义标题 """---设置题块编号---""" problems = [ -"012487,012488,012489,012490,012491,012492,012493,012494,012495,012496,012497,012498","012499,012500,012501,012502","012503,012504,012505,012506,012507" +"015101,015102,015103,015104,015105,015106,015107,015108,015109,015110,015111,015112","015113,015114,015115,015116","015117,015118,015119,015120,015121" ] @@ -25,7 +25,7 @@ if paper_type == 1: elif paper_type == 2: enumi_mode = 1 #设置模式(1为整卷统一编号, 0为每一部分从1开始编号) template_file = "模板文件/测验周末卷模板.txt" #设置模板文件名 - exec_list = [("标题替换","2023届杨浦区一模")] #设置讲义标题 + exec_list = [("标题替换","下学期测验08")] #设置讲义标题 destination_file = "临时文件/"+exec_list[0][1] # 设置输出文件名 elif paper_type == 3: enumi_mode = 0 #设置模式(1为整卷统一编号, 0为每一部分从1开始编号) diff --git a/工具/试卷答案生成.py b/工具/试卷答案生成.py index fa690923..4fcdd1ea 100644 --- a/工具/试卷答案生成.py +++ b/工具/试卷答案生成.py @@ -1,4 +1,4 @@ -file_dir = r"C:\Users\weiye\Documents\wwy sync\23届\下学期周末卷" +file_dir = r"C:\Users\weiye\Documents\wwy sync\23届\下学期测验卷" filelist = [] #列表为空默认处理所有讲义 output_gloss_filename= "临时" diff --git a/题库0.3/Problems.json b/题库0.3/Problems.json index d13a88f9..75bdf8fb 100644 --- a/题库0.3/Problems.json +++ b/题库0.3/Problems.json @@ -367083,7 +367083,7 @@ }, "014812": { "id": "014812", - "content": "某单位为了解用电量$y$度与气温$x^{\\circ} \\text{C}$之间的关系, 随机统计了某$4$天的用电量与当天气温.\n\\begin{center}\n\\begin{tabular}{|c|c|c|c|c|}\n\\hline 气温$({ }^{\\circ} \\text{C})$& 14 & 12 & 8 & 6 \\\\\n\\hline 用电量 (度) & 22 & 26 & 34 & 38 \\\\\n\\hline\n\\end{tabular}\n\\end{center}\n由表中数据所得回归直线方程为$y=-2 x+\\hat{b}$, 据此预测当气温为$5^{\\circ} \\text{C}$时, 用电量的度数约为\\blank{50}${ }^{\\circ} \\text{C}$.", + "content": "某单位为了解用电量$y$度与气温$x^{\\circ} \\text{C}$之间的关系, 随机统计了某$4$天的用电量与当天气温.\n\\begin{center}\n\\begin{tabular}{|c|c|c|c|c|}\n\\hline 气温$({ }^{\\circ} \\text{C})$& 14 & 12 & 8 & 6 \\\\\n\\hline 用电量 (度) & 22 & 26 & 34 & 38 \\\\\n\\hline\n\\end{tabular}\n\\end{center}\n由表中数据所得回归直线方程为$y=-2 x+\\hat{b}$, 据此预测当气温为$5^{\\circ} \\text{C}$时, 用电量的度数约为\\blank{50}度.", "objs": [], "tags": [ "第九单元" @@ -367095,7 +367095,8 @@ "usages": [], "origin": "2023届高三崇明区二模试题8", "edit": [ - "20230407\t王伟叶" + "20230407\t王伟叶", + "20230415\t王伟叶" ], "same": [], "related": [],