From 532cf970d70370c98e4da546538dc1b065f39580 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Fri, 23 Feb 2024 09:48:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E8=AE=A221482=E9=A2=98=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 题库0.3/Problems.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/题库0.3/Problems.json b/题库0.3/Problems.json index 16282bf0..a56066b7 100644 --- a/题库0.3/Problems.json +++ b/题库0.3/Problems.json @@ -583174,7 +583174,7 @@ }, "021482": { "id": "021482", - "content": "在下表填入相应的正弦、余弦、正切和余切值.\n\\begin{center}\n\\begin{tabular}{|c|c|c|c|c|c|}\n\\hline$\\alpha$&$\\dfrac{\\pi}{3}$&$\\dfrac{7 \\pi}{4}$&$\\dfrac{2021 \\pi}{2}$&$-\\dfrac{\\pi}{6}$&$-\\dfrac{22 \\pi}{3}$\\\\\n\\hline$\\sin \\alpha$&\\blank{30} &\\blank{30} & \\blank{30}&\\blank{30} &\\blank{30} \\\\\n\\hline$\\cos \\alpha$&\\blank{30} &\\blank{30} & \\blank{30}&\\blank{30} &\\blank{30} \\\\\n\\hline$\\tan \\alpha$&\\blank{30} &\\blank{30} & \\blank{30}&\\blank{30} &\\blank{30} \\\\\n\\hline$\\cot \\alpha$&\\blank{30} &\\blank{30} & \\blank{30}&\\blank{30} &\\blank{30} \\\\\n\\hline\n\\end{tabular}\n\\end{center}", + "content": "在下表填入相应的正弦、余弦、正切和余切值.\n\\begin{center}\n\\begin{tabular}{|c|c|c|c|c|c|}\n\\hline$\\alpha$&$\\dfrac{\\pi}{3}$&$\\dfrac{7 \\pi}{4}$&$\\dfrac{2021 \\pi}{2}$&$-\\dfrac{\\pi}{6}$&$-\\dfrac{22 \\pi}{3}$\\\\\n\\hline$\\sin \\alpha$& \\underline{\\hbox to 10pt{}}(1)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(2)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(3)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(4)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(5)\\underline{\\hbox to 10pt{}} \\\\\n\\hline$\\cos \\alpha$& \\underline{\\hbox to 10pt{}}(1)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(2)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(3)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(4)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(5)\\underline{\\hbox to 10pt{}} \\\\\n\\hline$\\tan \\alpha$& \\underline{\\hbox to 10pt{}}(1)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(2)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(3)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(4)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(5)\\underline{\\hbox to 10pt{}} \\\\\n\\hline$\\cot \\alpha$& \\underline{\\hbox to 10pt{}}(1)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(2)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(3)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(4)\\underline{\\hbox to 10pt{}} & \\underline{\\hbox to 10pt{}}(5)\\underline{\\hbox to 10pt{}} \\\\\n\\hline\n\\end{tabular}\n\\end{center}", "objs": [], "tags": [ "第三单元" @@ -583194,7 +583194,8 @@ ], "origin": "2025届高一下校本作业", "edit": [ - "20230209\t王伟叶" + "20230209\t王伟叶", + "20240223\t王伟叶" ], "same": [], "related": [], From 35f3143a889f9a27ea3ee916e1c3e38532510455 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Fri, 23 Feb 2024 13:19:50 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0I20260201=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BD=BF=E7=94=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/文本文件/metadata.txt | 454 +++-------------------------------- 题库0.3/Problems.json | 40 ++- 2 files changed, 64 insertions(+), 430 deletions(-) diff --git a/工具v2/文本文件/metadata.txt b/工具v2/文本文件/metadata.txt index 2994a004..e5277fb9 100644 --- a/工具v2/文本文件/metadata.txt +++ b/工具v2/文本文件/metadata.txt @@ -1,440 +1,50 @@ usages -021141 -20231222 2025届高二11班 0.905 +024585 +20240223 2026届高一10班 0.925 0.950 -021142 -20231222 2025届高二11班 0.905 +024586 +20240223 2026届高一10班 0.975 -021143 -20231222 2025届高二11班 0.952 +024587 +20240223 2026届高一10班 0.975 -021144 -20231222 2025届高二11班 1.000 +024588 +20240223 2026届高一10班 0.900 -021145 -20231222 2025届高二11班 0.619 +024589 +20240223 2026届高一10班 0.975 -021146 -20231222 2025届高二11班 1.000 +024590 +20240223 2026届高一10班 0.775 -021147 -20231222 2025届高二11班 0.952 +024591 +20240223 2026届高一10班 0.100 -021148 -20231222 2025届高二11班 1.000 +024592 +20240223 2026届高一10班 0.625 -021149 -20231222 2025届高二11班 0.905 +024585 +20240223 2026届高一12班 0.905 0.976 -021150 -20231222 2025届高二11班 0.571 +024586 +20240223 2026届高一12班 1.000 -021151 -20231222 2025届高二11班 0.762 +024587 +20240223 2026届高一12班 0.976 -021152 -20231222 2025届高二11班 0.691 +024588 +20240223 2026届高一12班 1.000 -021153 -20231222 2025届高二11班 0.762 +024589 +20240223 2026届高一12班 0.762 -021141 -20231222 2025届高二01班 1.000 +024590 +20240223 2026届高一12班 0.905 -021142 -20231222 2025届高二01班 1.000 +024591 +20240223 2026届高一12班 0.310 -021143 -20231222 2025届高二01班 1.000 - -021144 -20231222 2025届高二01班 0.947 - -021145 -20231222 2025届高二01班 0.895 - -021146 -20231222 2025届高二01班 1.000 - -021147 -20231222 2025届高二01班 0.974 - -021148 -20231222 2025届高二01班 0.882 - -021149 -20231222 2025届高二01班 1.000 - -021150 -20231222 2025届高二01班 1.000 - -021151 -20231222 2025届高二01班 0.842 - -021152 -20231222 2025届高二01班 0.947 - -021153 -20231222 2025届高二01班 0.908 - -021141 -20231222 2025届高二02班 1.000 - -021142 -20231222 2025届高二02班 0.978 - -021143 -20231222 2025届高二02班 1.000 - -021144 -20231222 2025届高二02班 0.800 - -021145 -20231222 2025届高二02班 0.956 - -021146 -20231222 2025届高二02班 1.000 - -021147 -20231222 2025届高二02班 1.000 - -021148 -20231222 2025届高二02班 0.956 - -021149 -20231222 2025届高二02班 1.000 - -021150 -20231222 2025届高二02班 0.933 - -021151 -20231222 2025届高二02班 0.889 - -021152 -20231222 2025届高二02班 0.956 - -021153 -20231222 2025届高二02班 0.900 - -021141 -20231222 2025届高二03班 0.951 - -021142 -20231222 2025届高二03班 0.976 - -021143 -20231222 2025届高二03班 0.976 - -021144 -20231222 2025届高二03班 1.000 - -021145 -20231222 2025届高二03班 0.927 - -021146 -20231222 2025届高二03班 1.000 - -021147 -20231222 2025届高二03班 0.992 - -021148 -20231222 2025届高二03班 0.951 - -021149 -20231222 2025届高二03班 0.951 - -021150 -20231222 2025届高二03班 0.951 - -021151 -20231222 2025届高二03班 0.854 - -021152 -20231222 2025届高二03班 0.902 - -021153 -20231222 2025届高二03班 0.939 - -021141 -20231222 2025届高二04班 0.976 - -021142 -20231222 2025届高二04班 1.000 - -021143 -20231222 2025届高二04班 0.976 - -021144 -20231222 2025届高二04班 1.000 - -021145 -20231222 2025届高二04班 0.902 - -021146 -20231222 2025届高二04班 1.000 - -021147 -20231222 2025届高二04班 0.976 - -021148 -20231222 2025届高二04班 1.000 - -021149 -20231222 2025届高二04班 0.902 - -021150 -20231222 2025届高二04班 0.951 - -021151 -20231222 2025届高二04班 0.829 - -021152 -20231222 2025届高二04班 0.695 - -021153 -20231222 2025届高二04班 0.744 - -021141 -20231222 2025届高二05班 1.000 - -021142 -20231222 2025届高二05班 1.000 - -021143 -20231222 2025届高二05班 0.886 - -021144 -20231222 2025届高二05班 0.971 - -021145 -20231222 2025届高二05班 0.886 - -021146 -20231222 2025届高二05班 0.986 - -021147 -20231222 2025届高二05班 0.971 - -021148 -20231222 2025届高二05班 0.986 - -021149 -20231222 2025届高二05班 0.971 - -021150 -20231222 2025届高二05班 1.000 - -021151 -20231222 2025届高二05班 0.914 - -021152 -20231222 2025届高二05班 0.900 - -021153 -20231222 2025届高二05班 0.929 - -021141 -20231222 2025届高二07班 0.975 - -021142 -20231222 2025届高二07班 0.925 - -021143 -20231222 2025届高二07班 0.950 - -021144 -20231222 2025届高二07班 1.000 - -021145 -20231222 2025届高二07班 0.825 - -021146 -20231222 2025届高二07班 0.988 - -021147 -20231222 2025届高二07班 0.967 - -021148 -20231222 2025届高二07班 0.912 - -021149 -20231222 2025届高二07班 0.975 - -021150 -20231222 2025届高二07班 0.850 - -021151 -20231222 2025届高二07班 0.750 - -021152 -20231222 2025届高二07班 0.863 - -021153 -20231222 2025届高二07班 0.938 - -021172 -20231229 2025届高二01班 0.976 - -021173 -20231229 2025届高二01班 0.829 - -021174 -20231229 2025届高二01班 1.000 - -021177 -20231229 2025届高二01班 0.780 - -021179 -20231229 2025届高二01班 0.927 - -021180 -20231229 2025届高二01班 0.878 - -021175 -20231229 2025届高二01班 0.805 - -021176 -20231229 2025届高二01班 0.902 0.793 - -021178 -20231229 2025届高二01班 1.000 - -021181 -20231229 2025届高二01班 0.817 0.927 - -021182 -20231229 2025届高二01班 0.744 - -021172 -20231229 2025届高二02班 0.976 - -021173 -20231229 2025届高二02班 0.833 - -021174 -20231229 2025届高二02班 0.857 - -021177 -20231229 2025届高二02班 0.905 - -021179 -20231229 2025届高二02班 0.762 - -021180 -20231229 2025届高二02班 0.952 - -021175 -20231229 2025届高二02班 0.857 - -021176 -20231229 2025届高二02班 0.964 0.821 - -021178 -20231229 2025届高二02班 0.976 - -021181 -20231229 2025届高二02班 0.941 0.905 - -021182 -20231229 2025届高二02班 0.845 - -021172 -20231229 2025届高二03班 0.947 - -021173 -20231229 2025届高二03班 0.868 - -021174 -20231229 2025届高二03班 0.921 - -021177 -20231229 2025届高二03班 0.974 - -021179 -20231229 2025届高二03班 0.526 - -021180 -20231229 2025届高二03班 0.921 - -021175 -20231229 2025届高二03班 0.987 - -021176 -20231229 2025届高二03班 0.947 0.816 - -021178 -20231229 2025届高二03班 1.000 - -021181 -20231229 2025届高二03班 0.947 0.961 - -021182 -20231229 2025届高二03班 0.882 - -021172 -20231229 2025届高二05班 0.861 - -021173 -20231229 2025届高二05班 0.667 - -021174 -20231229 2025届高二05班 0.778 - -021177 -20231229 2025届高二05班 0.667 - -021179 -20231229 2025届高二05班 0.833 - -021180 -20231229 2025届高二05班 0.944 - -021175 -20231229 2025届高二05班 0.917 - -021176 -20231229 2025届高二05班 0.583 0.528 - -021178 -20231229 2025届高二05班 0.917 - -021181 -20231229 2025届高二05班 0.750 0.708 - -021182 -20231229 2025届高二05班 0.792 - -021172 -20231229 2025届高二07班 0.900 - -021173 -20231229 2025届高二07班 0.475 - -021174 -20231229 2025届高二07班 0.725 - -021177 -20231229 2025届高二07班 0.725 - -021179 -20231229 2025届高二07班 0.675 - -021180 -20231229 2025届高二07班 0.850 - -021175 -20231229 2025届高二07班 0.787 - -021176 -20231229 2025届高二07班 0.787 0.675 - -021178 -20231229 2025届高二07班 0.887 - -021181 -20231229 2025届高二07班 0.850 0.787 - -021182 -20231229 2025届高二07班 0.637 +024592 +20240223 2026届高一12班 0.738 diff --git a/题库0.3/Problems.json b/题库0.3/Problems.json index a56066b7..eacac9e0 100644 --- a/题库0.3/Problems.json +++ b/题库0.3/Problems.json @@ -667022,7 +667022,10 @@ "ans": "", "solution": "", "duration": -1, - "usages": [], + "usages": [ + "20240223\t2026届高一10班\t0.925\t0.950", + "20240223\t2026届高一12班\t0.905\t0.976" + ], "origin": "自拟题目", "edit": [ "20240217\t王伟叶" @@ -667045,7 +667048,10 @@ "ans": "", "solution": "", "duration": -1, - "usages": [], + "usages": [ + "20240223\t2026届高一10班\t0.975", + "20240223\t2026届高一12班\t1.000" + ], "origin": "自拟题目", "edit": [ "20240217\t王伟叶" @@ -667065,7 +667071,10 @@ "ans": "", "solution": "", "duration": -1, - "usages": [], + "usages": [ + "20240223\t2026届高一10班\t0.975", + "20240223\t2026届高一12班\t0.976" + ], "origin": "自拟题目", "edit": [ "20240217\t王伟叶" @@ -667087,7 +667096,10 @@ "ans": "", "solution": "", "duration": -1, - "usages": [], + "usages": [ + "20240223\t2026届高一10班\t0.900", + "20240223\t2026届高一12班\t1.000" + ], "origin": "自拟题目", "edit": [ "20240217\t王伟叶" @@ -667107,7 +667119,10 @@ "ans": "", "solution": "", "duration": -1, - "usages": [], + "usages": [ + "20240223\t2026届高一10班\t0.975", + "20240223\t2026届高一12班\t0.762" + ], "origin": "自拟题目", "edit": [ "20240217\t王伟叶", @@ -667128,7 +667143,10 @@ "ans": "", "solution": "", "duration": -1, - "usages": [], + "usages": [ + "20240223\t2026届高一10班\t0.775", + "20240223\t2026届高一12班\t0.905" + ], "origin": "自拟题目", "edit": [ "20240217\t王伟叶" @@ -667154,7 +667172,10 @@ "ans": "", "solution": "", "duration": -1, - "usages": [], + "usages": [ + "20240223\t2026届高一10班\t0.100", + "20240223\t2026届高一12班\t0.310" + ], "origin": "自拟题目", "edit": [ "20240217\t王伟叶", @@ -667175,7 +667196,10 @@ "ans": "", "solution": "", "duration": -1, - "usages": [], + "usages": [ + "20240223\t2026届高一10班\t0.625", + "20240223\t2026届高一12班\t0.738" + ], "origin": "自拟题目", "edit": [ "20240217\t王伟叶" From 51024182e737b7ffc965b6655ad59787b525b0a5 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Fri, 23 Feb 2024 22:28:35 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=96=B0=E5=A2=9EMatchCondition2014,=20?= =?UTF-8?q?=E5=B0=86=E6=9F=A5=E6=89=BE=E6=9D=A1=E4=BB=B6=E5=8F=98=E4=B8=BA?= =?UTF-8?q?condition=5Flist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 3ba40654..d36ac772 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -823,6 +823,23 @@ def StripSuffix(string, suf_words): #除去字符串前后的空格及suf_words string = re.sub(sw+r"[\S]*$","",string) return(string) # 返回处理以后的字符串 + +def MatchCondition2014(problem,condition_list): #判断problem这一字典是否符合condition_list中的所有筛选条件 + match = True #初始设定符合条件 + for field, flag_not, matchexp in condition_list: + exps = [i.strip() for i in matchexp.split(",")] + if problem[field] == list: + data = "\n".join(problem[field]) + else: + data = str(problem[field]) #至此将每个字段中的内容都转为string + if flag_not == False: #表示肯定的筛选 + if all([re.findall(exp,data) == [] for exp in exps]): #如果有一个条件中的每个关键字都找不到, 就返回"不符合条件"(False) + return False + if flag_not == True: + if all([re.findall(exp,data) != [] for exp in exps]): #如果有一个条件中的每个关键字都能找到, 就返回"不符合条件"(False) + return False + return match #返回是否符合条件 + def MatchCondition(problem,condition_dict): #判断problem这一字典是否符合condition_dict中的所有筛选条件 match = True #初始设定符合条件 for fieldraw in [c for c in condition_dict if not "_not" in c and not condition_dict[c] == [""]]: #选出正向的条件([""]表示该条件不起作用)