From b194f192f04cb807831ca12662846a8f2f21a362 Mon Sep 17 00:00:00 2001 From: WangWeiye Date: Mon, 10 Apr 2023 16:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E9=AB=98=E4=B8=89=E8=B5=8B=E8=83=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=8A=E5=A2=9E=E5=8A=A0=E5=8F=8A=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=85=B3=E8=81=94=E9=A2=98=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具/latex界面修改题目内容.py | 2 +- 工具/修改题目数据库.py | 2 +- 工具/分年级专用工具/赋能卷生成.ipynb | 8 +- 工具/批量生成题目pdf.py | 2 +- 工具/添加关联题目.py | 4 +- 工具/试卷答案生成.py | 4 +- 工具/题号选题pdf生成.py | 4 +- 题库0.3/Problems.json | 185 ++++++++++++++++++++++----- 8 files changed, 168 insertions(+), 43 deletions(-) diff --git a/工具/latex界面修改题目内容.py b/工具/latex界面修改题目内容.py index ad0f6b27..0286eb44 100644 --- a/工具/latex界面修改题目内容.py +++ b/工具/latex界面修改题目内容.py @@ -1,6 +1,6 @@ import os,re,json """这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭""" -problems = "1:10" +problems = "31338" editor = "王伟叶" def generate_number_set(string,dict): diff --git a/工具/修改题目数据库.py b/工具/修改题目数据库.py index ea1246dc..2153e69a 100644 --- a/工具/修改题目数据库.py +++ b/工具/修改题目数据库.py @@ -1,6 +1,6 @@ import os,re,json """这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭, 随后运行第二个代码块""" -problems = "30060" +problems = "31395" def generate_number_set(string,dict): string = re.sub(r"[\n\s]","",string) diff --git a/工具/分年级专用工具/赋能卷生成.ipynb b/工具/分年级专用工具/赋能卷生成.ipynb index f715e656..4f707e12 100644 --- a/工具/分年级专用工具/赋能卷生成.ipynb +++ b/工具/分年级专用工具/赋能卷生成.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 8, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -18,11 +18,11 @@ "#在 模板文件 目录中保留 赋能template.txt.\n", "#在 临时文件/赋能答题纸 目录中保留output目录.\n", "\"\"\"---设置文件名---\"\"\"\n", - "filename = \"赋能30\"\n", + "filename = \"赋能42\"\n", "\n", "\"\"\"---设置题目列表---\"\"\"\n", "problems = r\"\"\"\n", - "626:630,13307,632:635\n", + "746:753,31396,755\n", "\n", "\"\"\"\n", "#完成后将含有 filename 的文件移至其它目录\n", @@ -122,7 +122,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.15" + "version": "3.8.15" }, "orig_nbformat": 4, "vscode": { diff --git a/工具/批量生成题目pdf.py b/工具/批量生成题目pdf.py index 485ea7da..864c5192 100644 --- a/工具/批量生成题目pdf.py +++ b/工具/批量生成题目pdf.py @@ -11,7 +11,7 @@ answered = True #目录和文件的分隔务必用/ directory = "临时文件/" # filename = "高三二模前易错题" -filename = "测试" +filename = "赋能" """---设置文件名结束---""" """---设置题目列表---""" diff --git a/工具/添加关联题目.py b/工具/添加关联题目.py index 6ef18f25..bef09f8d 100644 --- a/工具/添加关联题目.py +++ b/工具/添加关联题目.py @@ -1,8 +1,8 @@ import os,re,json,time """---设置原题目id与新题目id列表, 新id的数目不能小于旧id的数目---""" -old_ids = "12104" -new_ids = "31392" +old_ids = "754" +new_ids = "31396" """---设置完毕---""" """---完成编辑后记得运行第二个单元格---""" diff --git a/工具/试卷答案生成.py b/工具/试卷答案生成.py index 3e69fcaa..8cce07be 100644 --- a/工具/试卷答案生成.py +++ b/工具/试卷答案生成.py @@ -1,6 +1,6 @@ -file_dir = r"C:\Users\weiye\Documents\wwy sync\23届\四月错题重做" +file_dir = r"C:\Users\weiye\Documents\wwy sync\23届\下学期测验卷" filelist = [] #列表为空默认处理所有讲义 -output_gloss_filename = "错题重做参考答案" +output_gloss_filename = "下学期测验卷参考答案" import os,re,json diff --git a/工具/题号选题pdf生成.py b/工具/题号选题pdf生成.py index c52c65db..9ce12976 100644 --- a/工具/题号选题pdf生成.py +++ b/工具/题号选题pdf生成.py @@ -7,13 +7,13 @@ import os,re,time,json,sys """---设置题目列表---""" #留空为编译全题库, a为读取临时文件中的题号筛选.txt文件生成题库 problems = r""" -a + """ """---设置题目列表结束---""" """---设置文件名---""" #目录和文件的分隔务必用/ -filename = "临时文件/高一下周末卷08" +filename = "临时文件/题库" """---设置文件名结束---""" """---设置是否需要解答题的空格---""" diff --git a/题库0.3/Problems.json b/题库0.3/Problems.json index d1f53e2c..0ac37c01 100644 --- a/题库0.3/Problems.json +++ b/题库0.3/Problems.json @@ -18940,7 +18940,8 @@ "011540" ], "related": [ - "000674" + "000674", + "031393" ], "remark": "", "space": "" @@ -19556,7 +19557,7 @@ }, "000662": { "id": "000662", - "content": "各项均不为零的数列$\\{a_n\\}$的前$n$项和为$S_n$. 对任意$n\\in \\mathbf{N}^*$, $\\overrightarrow{m_n}=(a_{n+1}-a_n,2a_{n+1})$\n都是直线$y=kx$的法向量. 若$\\displaystyle\\lim_{n\\to\\infty}S_n$存在, 则实数$k$的取值范围是\\blank{50}.", + "content": "各项均不为零的数列$\\{a_n\\}$的前$n$项和为$S_n$. 对任意正整数$n$, $\\overrightarrow{m_n}=(a_{n+1}-a_n,2a_{n+1})$\n都是直线$y=kx$的法向量. 若$\\displaystyle\\lim_{n\\to\\infty}S_n$存在, 则实数$k$的取值范围是\\blank{50}.", "objs": [ "K0405002X" ], @@ -19574,7 +19575,8 @@ ], "origin": "赋能练习", "edit": [ - "20220624\t朱敏慧, 王伟叶" + "20220624\t朱敏慧, 王伟叶", + "20230410\t徐慧" ], "same": [], "related": [], @@ -19583,7 +19585,7 @@ }, "000663": { "id": "000663", - "content": "已知正四棱锥$P-ABCD$的棱长都相等, 侧棱$PB$、$PD$的中点分别为$M$、$N$, 则截面$AMN$与底面$ABCD$所成的二面角的余弦值是\\blank{50}.", + "content": "已知正四棱锥$P-ABCD$的棱长都相等, 侧棱$PB$、$PD$的中点分别为$M$、$N$, 则截面$AMN$与底面$ABCD$所成的锐二面角的余弦值是\\blank{50}.", "objs": [], "tags": [ "第六单元" @@ -19597,7 +19599,8 @@ ], "origin": "赋能练习", "edit": [ - "20220624\t朱敏慧, 王伟叶" + "20220624\t朱敏慧, 王伟叶", + "20230410\t徐慧" ], "same": [], "related": [], @@ -20284,7 +20287,7 @@ }, "000688": { "id": "000688", - "content": "函数$f(x)=\\begin{vmatrix} \\sin x & 2\\cos x \\\\ 2\\cos x & \\sin x\\end{vmatrix}$的最小正周期是\\blank{50}.", + "content": "函数$f(x)=\\sin^2 x- 4\\cos^2 x$的最小正周期是\\blank{50}.", "objs": [], "tags": [ "暂无对应" @@ -20298,7 +20301,8 @@ ], "origin": "赋能练习", "edit": [ - "20220624\t朱敏慧, 王伟叶" + "20220624\t朱敏慧, 王伟叶", + "20230410\t徐慧" ], "same": [], "related": [ @@ -20469,7 +20473,9 @@ "20220624\t朱敏慧, 王伟叶" ], "same": [], - "related": [], + "related": [ + "031394" + ], "remark": "", "space": "" }, @@ -20771,7 +20777,7 @@ }, "000706": { "id": "000706", - "content": "设全集$U=\\mathbf{R}$, 若集合$A=\\{2\\}$,$B=\\{x|-10\\}$, 则$\\complement_U A=$\\blank{50}.", + "content": "已知全集$U=\\mathbf{R}$, 集合$A=\\{x|x^2-2x-3>0\\}$, 则$\\overline A=$\\blank{50}.", "objs": [ "K0104006B", "K0114001B" @@ -21602,7 +21616,8 @@ ], "origin": "赋能练习", "edit": [ - "20220624\t朱敏慧, 王伟叶" + "20220624\t朱敏慧, 王伟叶", + "20230410\t徐慧" ], "same": [], "related": [], @@ -21751,7 +21766,7 @@ }, "000742": { "id": "000742", - "content": "函数$f(x)=\\begin{vmatrix} (\\sin x+\\cos x)^2 & -1 \\\\ 1 & 1 \\end{vmatrix}$的最小正周期是\\blank{50}.", + "content": "函数$f(x)=(\\sin x+\\cos x)^2+1$的最小正周期是\\blank{50}.", "objs": [], "tags": [ "第三单元" @@ -21765,7 +21780,8 @@ ], "origin": "赋能练习", "edit": [ - "20220624\t朱敏慧, 王伟叶" + "20220624\t朱敏慧, 王伟叶", + "20230410\t徐慧" ], "same": [], "related": [], @@ -22081,7 +22097,9 @@ "same": [ "004088" ], - "related": [], + "related": [ + "031396" + ], "remark": "", "space": "" }, @@ -448265,7 +448283,7 @@ }, "031338": { "id": "031338", - "content": "已知甲、乙两组数据如茎叶图所示, 其中$m$、$n \\in \\mathbf{N}$. 若这两组数据的中位数相等, 平均数也相等, 则$\\dfrac{m}{n}=$\\blank{50}.\n\\begin{center}\n\\begin{tabular}{cc|c|ccc}\n\\multicolumn{2}{c|}{甲} & & \\multicolumn{3}{c}{乙}\\\\\\hline\n& 6 & 2 & $n$\\\\ \n9 & $m$ & 3 & 2 & 4 & 8\n\\end{tabular}\n\\end{center}", + "content": "已知甲、乙两组数据如茎叶图所示, 其中$m$、$n \\in \\mathbf{N}$. 若这两组数据的中位数相等, 平均数也相等, 则$\\dfrac{m}{n}=$\\blank{50}.\n\\begin{center}\n\\begin{tabular}{cc|c|ccc}\n\\multicolumn{2}{c|}{甲} & & \\multicolumn{3}{c}{乙}\\\\\\hline\n& 7 & 2 & $n$\\\\ \n9 & $m$ & 3 & 2 & 4 & 8\n\\end{tabular}\n\\end{center}", "objs": [], "tags": [], "genre": "填空题", @@ -448275,7 +448293,8 @@ "usages": [], "origin": "上海市高三数学学科素养测试试题7", "edit": [ - "20230316\t王伟叶" + "20230316\t王伟叶", + "20230410\t王伟叶" ], "same": [], "related": [], @@ -449478,6 +449497,112 @@ "remark": "", "space": "" }, + "031393": { + "id": "031393", + "content": "已知首项为$1$公差为$2$的等差数列$\\{a_n\\}$, 其前$n$项和为$S_n$. 若$S_n\\ge 2023$, 则$n$的最小可能值为\\blank{50}.", + "objs": [ + "K0405001X" + ], + "tags": [ + "第四单元" + ], + "genre": "填空题", + "ans": "", + "solution": "", + "duration": -1, + "usages": [], + "origin": "赋能练习-20230410修改", + "edit": [ + "20220624\t朱敏慧, 王伟叶", + "20230410\t王伟叶" + ], + "same": [], + "related": [ + "000674", + "000638" + ], + "remark": "", + "space": "" + }, + "031394": { + "id": "031394", + "content": "设多项式$1+x+(1+x)^2+(1+x)^3+\\cdots+(1+x)^n\\ (x\\ne 0, \\ n\\in \\mathbf{N}^*)$的展开式中$x$项的系数为$T_n$, 则$T_n=$\\blank{50}.", + "objs": [ + "K0819005X" + ], + "tags": [ + "第八单元", + "二项式定理" + ], + "genre": "填空题", + "ans": "", + "solution": "", + "duration": -1, + "usages": [], + "origin": "赋能练习-20230410修改", + "edit": [ + "20220624\t朱敏慧, 王伟叶", + "20230410\t徐慧" + ], + "same": [], + "related": [ + "000694" + ], + "remark": "", + "space": "" + }, + "031395": { + "id": "031395", + "content": "给出下列函数: \\textcircled{1} $y=x+\\dfrac1x$; \\textcircled{2} $y={x^2}+x$; \\textcircled{3} $y={2^{|x|}}$; \\textcircled{4} $y={x^{\\frac23}}$; \\textcircled{5} $y=\\tan x$; \\textcircled{6} $y=\\sin(\\cos x)$; \\textcircled{7} $y=\\lg(x+\\sqrt{{x^2}+4})-\\lg 2$. 从这$7$个函数中任取两个函数, 则其中一个是奇函数另一个是偶函数的概率是\\blank{50}.", + "objs": [ + "K0217004B", + "K0803002B" + ], + "tags": [ + "第二单元" + ], + "genre": "填空题", + "ans": "$\\frac 37$", + "solution": "", + "duration": -1, + "usages": [], + "origin": "赋能练习-20230410修改", + "edit": [ + "20220624\t朱敏慧, 王伟叶", + "20230410\t徐慧" + ], + "same": [], + "related": [ + "030018", + "000734" + ], + "remark": "", + "space": "" + }, + "031396": { + "id": "031396", + "content": "如图, 长方体$ABCD-A_1B_1C_1D_1$的边长$AB=AA_1=1$ ,$AD=\\sqrt2$ , 它的外接球是球$O$, 则$\\angle AOA_1=$\\blank{50}.\n\\begin{center}\n \\begin{tikzpicture}\n \\draw (0,0) node [below left] {$A$} coordinate (A) --++ (2,0) node [below right] {$B$} coordinate (B) --++ (45:{2*sqrt(2)/2}) node [right] {$C$} coordinate (C)\n --++ (0,2) node [above right] {$C_1$} coordinate (C1)\n --++ (-2,0) node [above left] {$D_1$} coordinate (D1) --++ (225:{2*sqrt(2)/2}) node [left] {$A_1$} coordinate (A1) -- cycle;\n \\draw (A) ++ (2,2) node [right] {$B_1$} coordinate (B1) -- (B) (B1) --++ (45:{2*sqrt(2)/2}) (B1) --++ (-2,0);\n \\draw [dashed] (A) --++ (45:{2*sqrt(2)/2}) node [left] {$D$} coordinate (D) --++ (2,0) (D) --++ (0,2);\n \\draw [dashed] (A1) -- (C) (A) --(C1);\n \\end{tikzpicture}\n\\end{center}", + "objs": [], + "tags": [ + "第六单元" + ], + "genre": "填空题", + "ans": "$\\frac{\\pi}3$", + "solution": "", + "duration": -1, + "usages": [], + "origin": "赋能练习-20230410修改", + "edit": [ + "20220624\t朱敏慧, 王伟叶", + "20230410\t徐慧" + ], + "same": [], + "related": [ + "000754" + ], + "remark": "", + "space": "" + }, "040001": { "id": "040001", "content": "参数方程$\\begin{cases}x=3 t^2+4, \\\\ y=t^2-2\\end{cases}$($0 \\leq t \\leq 3$)所表示的曲线是\\bracket{20}.\n\\fourch{一支双曲线}{线段}{圆弧}{射线}",