收录2020届空中课堂高三学科精要名师点拨后6课时题目 及 增加错题来源寻找工具

This commit is contained in:
weiye.wang 2023-04-12 21:18:43 +08:00
parent e11c2de127
commit e69a3a2bee
10 changed files with 1540 additions and 13 deletions

View File

@ -1,6 +1,6 @@
import os,re,json
"""这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭"""
problems = "014805,014806,014807,014808,014809,014810,014811,014812,014813,014814,014815,014816,014817,014818,014819,014820,014821,014822,014823,014824,014825,030608,030632,030636,030679,030715,030757,030836,030856,030895,030927,030955,030977,031022,031040,031115,031136,031149"
problems = "013535"
editor = "王伟叶"
def generate_number_set(string,dict):

View File

@ -2,7 +2,7 @@ import os,re,json
"""---设置关键字, 同一field下不同选项为or关系, 同一字典中不同字段间为and关系, 不同字典间为or关系, _not表示列表中的关键字都不含, 同一字典中的数字用来供应同一字段不同的条件之间的and---"""
keywords_dict_table = [
{"origin":["2025"],"origin2":["校本"],"origin3":["高一下"]}
{"content":["阿基米德"]}
]
"""---关键字设置完毕---"""
# 示例: keywords_dict_table = [

View File

@ -101,6 +101,8 @@ def run_command1():
call(["python","latex界面修改题目内容.py"])
elif selectedtool == "答案metadata生成":
call(["python","答案metadata生成.py"])
elif selectedtool == "错题重做来源清点":
call(["python","错题重做来源清点.py"])
LabelTool.config(text = selectedtool+"STEP1命令执行完毕")
button1.place_forget()
@ -168,6 +170,7 @@ BKZMenu.add_command(label = "试卷答案生成", command = lambda: SetButton("
BKZMenu.add_command(label = "题号清单生成", command = lambda: SetButton("题号清单生成",1,["题号清单生成.py"]))
BKZMenu.add_command(label = "已用题号剔除", command = lambda: SetButton("已用题号剔除",1,["已用题号剔除.py"]))
BKZMenu.add_command(label = "寻找未赋答案题目", command = lambda: SetButton("寻找未赋答案题目",1,["寻找未赋答案题目.py"]))
BKZMenu.add_command(label = "错题重做来源清点", command = lambda: SetButton("错题重做来源清点",1,["错题重做来源清点.py"]))
# 设置 目标及标签 菜单项
ObjTagMenu = Menu(menubar, tearoff = False)

View File

@ -1,8 +1,8 @@
#修改起始id,出处,文件名
starting_id = 14847
raworigin = ""
starting_id = 14920
raworigin = "2022届空中课堂学科精要名师点拨-"
filename = r"C:\Users\weiye\Documents\wwy sync\临时工作区\自拟题目6.tex"
editor = "202304011\t王伟叶"
editor = "202304012\t王伟叶"
indexed = False
import os,re,json

View File

@ -1 +1 @@
021441,021442,021443,021444,021445,021446,021447,021448,021449,021450,021451,021452,021453,021454,021455,021456,021457,021458,021459,021460,021461,021462,021463,021464,021465,021466,021467,021468,021469,021470,021471,021472,021473,021474,021475,021476,021477,021478,021479,021480,021481,021482,021483,021484,021485,021486,021487,021488,021489,021490,021491,021492,021493,021494,021495,021496,021497,021498,021499,021500,021501,021502,021503,021504,021505,021506,021507,021508,021509,021510,021511,021512,021513,021514,021515,021516,021517,021518,021519,021520,021521,021522,021523,021524,021525,021526,021527,021528,021529,021530,021531,021532,021533,021534,021535,021536,021537,021538,021539,021540,021541,021542,021543,021544,021545,021546,021547,021548,021549,021550,021551,021552,021553,021554,021555,021556,021557,021558,021559,021560,021561,021562,021563,021564,021565,021566,021567,021568,021569,021570,021571,021572,021573,021574,021575,021576,021577,021578,021579,021580,021581,021582,021583,021584,021585,021586,021587,021588,021589,021590,021591,021592,021593,021594,021595,021596,021597,021598,021599,021600,021601,021602,021603,021604,021605,021606,021607,021608,021609,021610,021611,021612,021613,021614,021615,021616,021617,021618,021619,021620,021621,021622,021623,021624,021625,021626,021627,021628,021629,021630,021631,021632,021633,021634,021635,021636,021637,021638,021639,021640,021641,021642,021643,021644,021645,021646,021647,021648,021649,021650,021651,021652,021653,021654,021655,021656,021657,021658,021659,021660,021661,021662,021663,021664,021665,021666,021667,021668,021669,021670,021671,021672,021673,021674,021675,021676,021677,021678,021679,021680,021681,021682,021683,021684,021685,021686,021687,021688,021689,021690,021691,021692,021693,021694,021695,021696,021697,021698,021699,021700,021701,021702,021703,021704,021705,021706,021707,021708,021709,021710,021711,021712,021713,021714,021715,021716,021717,021718,021719,021720,021721,021722,021723,021724,021725,021726,021727,021728,021729,021730,021731,021732,021733,021734,021735,021736,021737,021738,021739,021740,021741,021742,021743,021744,021745,021746,021747,021748,021749,021750,021751,021752,021753,021754,021755,021756,021757,021758,021759,021760,021761,021762,021763,021764,021765,021766,021767,021768,021769,021770,021771,021772,021773,021774,021775,021776,021777,021778,021779,021780,021781,021782,021783,021784,021785,021786,021787,021788,021789,021790,021791,021792,021793,021794,021795,021796,021797,021798,021799,021800,021801,021802,021803,021804,021805,021806,021807,021808,021809,021810,021811,021812,021813,021814,021815,021816,021817,021818,021819,021820,021821,021822,021823,021824,021825,021826,021827,021828,021829,021830,021831,021832,021833,021834,021835,021836,021837,021838,021839,021840,021841,021842,021843,021844,021845,021846,021847,021848,021849,021850,021851,021852,021853,021854,021855,021856,021857,021858,021859,021860,021861,021862,021863,021864,021865,021866,021867,021868,021869,021870,021871,021872,021873,021874,021875,021876,021877,021878,021879,021880,021881,021882,021883,021884,021885,021886,021887,021888,021889,021890,021891,021892,021893,021894,021895,021896,021897,021898,021899,021900,021901,021902,021903,021904,021905,021906,021907,021908,021909,021910,021911,021912,021913,021914,021915,021916,021917,021918,021919,021920,021921,021922,021923,021924,021925,021926,021927,021928,021929,021930,021931,021932,021933,021934,021935,021936,021937,021938,021939,021940,021941,021942,021943,021944,021945,021946,021947,021948,021949,021950,021951,021952,021953,021954,021955,021956,021957,021958,021959,021960,021961,021962,021963,021964,021965,021966,021967,021968,021969,021970,021971,021972,021973,021974,021975,021976,021977,021978,021979,021980,021981,021982,021983,021984,021985,021986,021987,021988,021989,021990,021991,021992,021993,021994,021995,021996,021997,021998,021999,022000,022001,022002,022003,022004,022005,022006,022007,022008,022009,022010,022011,022012,022013,022014,022015,022016,022017,022018,022019,022020,022021,022022,022023,022024,022025,022026,022027,022028,022029,022030,022031,022032,022033,022034,022035,022036,022037,022038,022039,022040,022041,022042,022043,022044,022045,022046,022047
013535

View File

@ -5,12 +5,12 @@ import os,re,json,time,sys
"""2: 测验卷与周末卷(填空题, 选择题, 解答题)"""
"""3: 日常选题讲义(一个section)"""
paper_type = 1 # 随后设置一下后续的讲义标题
paper_type = 3 # 随后设置一下后续的讲义标题
"""---设置题块编号---"""
problems = [
"332,401,654,2605,2664,3574,3640,31196,31320,4584,7361,7423,30227,30275,30540","340,412,2586,3585,4575,11993,7630,14091,31158,7502,10868,30495,30520"
"4612:4618"
]
@ -30,7 +30,7 @@ elif paper_type == 2:
elif paper_type == 3:
enumi_mode = 0 #设置模式(1为整卷统一编号, 0为每一部分从1开始编号)
template_file = "模板文件/日常选题讲义模板.txt" #设置模板文件名
exec_list = [("标题文字待处理","第四讲")] #设置讲义标题
exec_list = [("标题文字待处理","07超几何分布")] #设置讲义标题
destination_file = "临时文件/"+exec_list[0][1] # 设置输出文件名

View File

@ -0,0 +1,78 @@
import os,re,json
outputfile = "临时文件/已做题目.txt"
new_dir = r"C:\Users\weiye\Documents\wwy sync\23届\四月错题重做"
old_dirs = [
r"C:\Users\weiye\Documents\wwy sync\23届\暑假概率初步续",
r"C:\Users\weiye\Documents\wwy sync\23届\上学期测验卷",
r"C:\Users\weiye\Documents\wwy sync\23届\上学期周末卷",
r"C:\Users\weiye\Documents\wwy sync\23届\第一轮复习讲义",
r"C:\Users\weiye\Documents\wwy sync\23届\其他讲义与试卷",
r"C:\Users\weiye\Documents\wwy sync\23届\赋能",
r"C:\Users\weiye\Documents\wwy sync\23届\正态分布及成对数据新课",
r"C:\Users\weiye\Documents\wwy sync\23届\下学期测验卷",
r"C:\Users\weiye\Documents\wwy sync\23届\下学期周末卷",
r"C:\Users\weiye\Documents\wwy sync\23届\第二轮复习讲义"
]
def id_related(id,prodict,idrespdict):
for rid in prodict[id]["related"]:
if rid in idrespdict:
return True
return False
with open(r"../题库0.3/Problems.json","r",encoding="u8") as f:
data = f.read()
pro_dict = json.loads(data)
id_resp_dict = {}
for dir in old_dirs:
for texfile in os.listdir(dir):
if ".tex" in texfile:
with open(os.path.join(dir,texfile),"r",encoding="u8") as f:
data = f.read()
ids = re.findall(r"\((\d{6})\)",data)
for id in ids:
if not id in id_resp_dict:
id_resp_dict[id] = [os.path.join(os.path.split(dir)[1],texfile[:-4])+"--题序"+str(ids.index(id)+1)]
else:
id_resp_dict[id].append(os.path.join(os.path.split(dir)[1],texfile[:-4])+"--题序"+str(ids.index(id)+1))
new_texfiles = [f for f in os.listdir(new_dir) if ".tex" in f]
output = ""
for texfile in new_texfiles:
with open(os.path.join(new_dir,texfile),"r",encoding="u8") as f:
data = f.read()
ids = re.findall(r"\((\d{6})\)",data)
output += texfile[:-4] + "\n"
print(texfile[:-4])
output += ",".join(ids) + "\n"
print(",".join(ids))
for id in ids:
if id in id_resp_dict:
print("%s\t(已做题)\t%s"%(id,",".join(id_resp_dict[id])))
output += "%s\t(已做题)\t%s\n"%(id,",".join(id_resp_dict[id]))
elif id_related:
rel_ids = pro_dict[id]["related"]
origins = []
for id in rel_ids:
if id in id_resp_dict:
origins += id_resp_dict[id]
print("%s\t(关联题)\t%s"%(id,",".join(origins)))
output += "%s\t(关联题)\t%s\n"%(id,",".join(origins))
else:
print("%s\t(无关题)")
output += "%s\t(无关题)\n"
print("")
output += "\n"
with open(outputfile,"w",encoding="u8") as f:
f.write(output)

View File

@ -1,6 +1,8 @@
import os,re
"---此处输入文件夹列表---"
directories = [r"C:\Users\weiye\Documents\wwy sync\23届\上学期测验卷",
directories = [
r"C:\Users\weiye\Documents\wwy sync\23届\暑假概率初步续",
r"C:\Users\weiye\Documents\wwy sync\23届\上学期测验卷",
r"C:\Users\weiye\Documents\wwy sync\23届\上学期周末卷",
r"C:\Users\weiye\Documents\wwy sync\23届\第一轮复习讲义",
r"C:\Users\weiye\Documents\wwy sync\23届\赋能",
@ -11,7 +13,7 @@ r"C:\Users\weiye\Documents\wwy sync\23届\下学期测验卷",
r"C:\Users\weiye\Documents\wwy sync\23届\下学期周末卷",
r"C:\Users\weiye\Documents\wwy sync\23届\第二轮复习讲义",
r"C:\Users\weiye\Documents\wwy sync\23届\四月错题重做",
r"d:\mathdeptv2\工具\临时文件"
]
"---文件夹列表输入结束---"

View File

@ -7,13 +7,13 @@ import os,re,time,json,sys
"""---设置题目列表---"""
#留空为编译全题库, a为读取文本文件中的题号筛选.txt文件生成题库
problems = r"""
000778,001253,001325,003747,013721,031392,010938,011148,004157,010197,030060,001339,002918,030327,004009,001262,004435,030398,030051,012859,031321,012543,001352,005650,005123,030337,007939,002968,012902,030356
4572:4618
"""
"""---设置题目列表结束---"""
"""---设置文件名---"""
#目录和文件的分隔务必用/
filename = "临时文件/易错题1原结果"
filename = "临时文件/临时"
"""---设置文件名结束---"""
"""---设置是否需要解答题的空格---"""

File diff suppressed because it is too large Load Diff