20221212 afternoon

This commit is contained in:
WangWeiye 2022-12-12 17:08:13 +08:00
parent b291e49c8a
commit a85cdf1ec7
6 changed files with 197 additions and 104 deletions

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 6,
"metadata": {},
"outputs": [
{
@ -11,7 +11,7 @@
"0"
]
},
"execution_count": 12,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
@ -19,7 +19,7 @@
"source": [
"import os,re,json\n",
"\"\"\"这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭, 随后运行第二个代码块\"\"\"\n",
"problems = \"12221,12222\"\n",
"problems = \"30498:30499\"\n",
"\n",
"def generate_number_set(string,dict):\n",
" string = re.sub(r\"[\\n\\s]\",\"\",string)\n",
@ -51,7 +51,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 16,
"metadata": {},
"outputs": [
{
@ -16,12 +16,13 @@
"source": [
"#在 临时文件/赋能答题纸 目录中保留一个pdf(赋能试卷的答题纸), 不留别的pdf文件. \n",
"#在 临时文件/赋能答题纸 目录中保留 赋能template.tex.\n",
"#在 临时文件/赋能答题纸 目录中保留output目录.\n",
"\"\"\"---设置文件名---\"\"\"\n",
"filename = \"赋能09\"\n",
"filename = \"赋能12\"\n",
"\n",
"\"\"\"---设置题目列表---\"\"\"\n",
"problems = r\"\"\"\n",
"406:408,11585,410:415\n",
"446:448,30500,450,451,30498,435,454,30499\n",
"\"\"\"\n",
"#完成后将含有 filename 的文件移至其它目录\n",
"\n",
@ -57,7 +58,8 @@
"try:\n",
" os.rename(\"tempanswersheet-1.png\",\"临时文件/赋能答题纸/output/\"+filename+\"答题纸.png\")\n",
"except:\n",
" os.remove(\"tempanswersheet-1.png\")\n",
" os.remove(\"临时文件/赋能答题纸/output/\"+filename+\"答题纸.png\")\n",
" os.rename(\"tempanswersheet-1.png\",\"临时文件/赋能答题纸/output/\"+filename+\"答题纸.png\")\n",
"os.rename(pdffile,\"临时文件/赋能答题纸/\"+filename+\"答题纸_raw.pdf\")\n",
"os.remove(\"tempanswersheet.pdf\")\n",
"\n",
@ -83,18 +85,11 @@
"print(os.system(\"xelatex -interaction=batchmode \" + filename +\".tex\"))\n",
"os.chdir(\"../../..\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.8 ('base')",
"display_name": "Python 3.8.15 ('mathdept')",
"language": "python",
"name": "python3"
},
@ -108,12 +103,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.8.15"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "d311ffef239beb3b8f3764271728f3972d7b090c974f8e972fcdeedf230299ac"
"hash": "42dd566da87765ddbe9b5c5b483063747fec4aacc5469ad554706e4b742e67b2"
}
}
},

View File

@ -2,80 +2,14 @@
"cells": [
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"32_空间向量的概念与性质及立体几何中的证明问题.tex\n",
"009860\n",
"\n",
"\n",
"001966\n",
"\n",
"\n",
"001969\n",
"\n",
"\n",
"010715\n",
"\n",
"\n",
"001956\n",
"\n",
"\n",
"030464\n",
"\n",
"\n",
"030457\n",
"\n",
"\n",
"010733\n",
"\n",
"\n",
"001949\n",
"\n",
"\n",
"001957\n",
"\n",
"\n",
"010714\n",
"\n",
"\n",
"001958\n",
"\n",
"\n",
"001965\n",
"\n",
"\n",
"003679\n",
"\n",
"\n",
"030470\n",
"\n",
"\n",
"030454\n",
"\n",
"\n",
"009858\n",
"\n",
"\n",
"001980\n",
"\n",
"\n",
"001968\n",
"\n",
"\n",
"001976\n",
"\n",
"\n",
"001954\n",
"\n",
"\n",
"030479\n",
"\n",
"\n"
"赋能08.tex\n"
]
}
],
@ -83,9 +17,9 @@
"import os,json,re\n",
"\n",
"#这里需要修改, 设定路径与选择文件\n",
"fileind = 32\n",
"fileind = 8\n",
"# path = r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\上学期测验卷\"\n",
"path = r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\第一轮复习讲义\"\n",
"path = r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\赋能\"\n",
"\n",
"fileind = fileind - 1\n",
"with open(\"../题库0.3/Problems.json\",\"r\",encoding = \"utf8\") as f:\n",

View File

@ -2,15 +2,15 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"import os,re,json,time\n",
"\n",
"\"\"\"---设置原题目id与新题目id---\"\"\"\n",
"old_id = \"12026\"\n",
"new_id = \"30495\"\n",
"old_id = \"12222\"\n",
"new_id = \"30501\"\n",
"\"\"\"---设置完毕---\"\"\"\n",
"\n",
"old_id = old_id.zfill(6)\n",
@ -50,7 +50,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.7 ('base')",
"display_name": "Python 3.8.15 ('mathdept')",
"language": "python",
"name": "python3"
},
@ -64,12 +64,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.8.15"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "e4cce46d6be9934fbd27f9ca0432556941ea5bdf741d4f4d64c6cd7f8dfa8fba"
"hash": "42dd566da87765ddbe9b5c5b483063747fec4aacc5469ad554706e4b742e67b2"
}
}
},

View File

@ -152,7 +152,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "mathdept",
"display_name": "Python 3.9.13 ('base')",
"language": "python",
"name": "python3"
},
@ -166,12 +166,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"version": "3.9.13"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
"hash": "ad2bdc8ecc057115af97d19610ffacc2b4e99fae6737bb82f5d7fb13d2f2c186"
}
}
},

View File

@ -12299,7 +12299,9 @@
"004082",
"011540"
],
"related": [],
"related": [
"030496"
],
"remark": "",
"space": ""
},
@ -12638,7 +12640,9 @@
"004497",
"006899"
],
"related": [],
"related": [
"030497"
],
"remark": "",
"space": ""
},
@ -12797,7 +12801,8 @@
],
"same": [],
"related": [
"000688"
"000688",
"030500"
],
"remark": "",
"space": ""
@ -12886,7 +12891,8 @@
"same": [],
"related": [
"004085",
"011247"
"011247",
"030498"
],
"remark": "",
"space": ""
@ -12967,7 +12973,9 @@
"20220624\t朱敏慧, 王伟叶"
],
"same": [],
"related": [],
"related": [
"030499"
],
"remark": "",
"space": ""
},
@ -301568,7 +301576,7 @@
},
"012210": {
"id": "012210",
"content": "在$\\triangle ABC$中,$AC=3$, $3 \\sin A=2 \\sin B$, 且$\\cos C=\\dfrac 14$, 则$AB=$\\blank{50}.",
"content": "在$\\triangle ABC$中, $AC=3$, $3 \\sin A=2 \\sin B$, 且$\\cos C=\\dfrac 14$, 则$AB=$\\blank{50}.",
"objs": [],
"tags": [],
"genre": "填空题",
@ -301811,7 +301819,9 @@
"20221212\t王慎有"
],
"same": [],
"related": [],
"related": [
"030501"
],
"remark": "",
"space": "12ex"
},
@ -323299,5 +323309,159 @@
],
"remark": "",
"space": "12ex"
},
"030496": {
"id": "030496",
"content": "数列$\\{a_n\\}$是首项为$1$, 公差为$2$的等差数列, $S_n$是它前$n$项和, 若$\\dfrac{S_n}{a_n^2}\\le A$恒成立, 则$A$的最小值为\\blank{50}.",
"objs": [
"KNONE"
],
"tags": [
"第四单元"
],
"genre": "填空题",
"ans": "$1$",
"solution": "",
"duration": -1,
"usages": [],
"origin": "赋能练习-20221212修改",
"edit": [
"20220624\t朱敏慧, 王伟叶",
"20221212\t王伟叶"
],
"same": [],
"related": [
"000430"
],
"remark": "",
"space": ""
},
"030497": {
"id": "030497",
"content": "在正项等比数列$\\{a_n\\}$中, 已知公比为$\\dfrac 13$, 若对任意正整数$n$, $a_1+a_2+\\cdots+a_n<\\dfrac 12$恒成立, 则$a_1$的取值范围是\\blank{50}.",
"objs": [
"KNONE"
],
"tags": [
"第四单元"
],
"genre": "填空题",
"ans": "$(0,\\dfrac 13]$",
"solution": "",
"duration": -1,
"usages": [],
"origin": "赋能练习-20221212修改",
"edit": [
"20220624\t朱敏慧, 王伟叶",
"20221212\t王伟叶"
],
"same": [],
"related": [
"000443"
],
"remark": "",
"space": ""
},
"030498": {
"id": "030498",
"content": "如果实数$x$、$y$满足$(x-1)^2+(y-2)^2=4$, 则$2x+y$的最大值是\\blank{50}.",
"objs": [],
"tags": [
"暂无对应"
],
"genre": "填空题",
"ans": "$4+2\\sqrt{5}$",
"solution": "",
"duration": -1,
"usages": [],
"origin": "赋能练习-20221212修改",
"edit": [
"20220624\t朱敏慧, 王伟叶",
"20221212\t王伟叶"
],
"same": [],
"related": [
"004085",
"011247",
"000452"
],
"remark": "",
"space": ""
},
"030499": {
"id": "030499",
"content": "设$a_n$是$(1+x)^n$($n\\in \\mathbf{N}$, $n\\ge 2$, $x\\in \\mathbf{R}$)展开式中$x^2$项的系数, 若$a_2+a_3+\\cdots+a_n<10000$, 则$n$的最小值为\\blank{50}.",
"objs": [
"KNONE"
],
"tags": [
"第四单元",
"第八单元",
"二项式定理"
],
"genre": "填空题",
"ans": "$2$",
"solution": "",
"duration": -1,
"usages": [],
"origin": "赋能练习-20221212修改",
"edit": [
"20220624\t朱敏慧, 王伟叶",
"20221212\t王伟叶"
],
"same": [],
"related": [
"000455"
],
"remark": "",
"space": ""
},
"030500": {
"id": "030500",
"content": "函数$f(x)=\\sin^2 x-\\cos^2 x$的最小正周期是\\blank{50}.",
"objs": [],
"tags": [
"第三单元"
],
"genre": "填空题",
"ans": "$\\pi$",
"solution": "",
"duration": -1,
"usages": [],
"origin": "赋能练习-20221212修改",
"edit": [
"20220624\t朱敏慧, 王伟叶",
"20221212\t王伟叶"
],
"same": [],
"related": [
"000688",
"000449"
],
"remark": "",
"space": ""
},
"030501": {
"id": "030501",
"content": "已知抛物线$y^2=4 x$, $F$为焦点,$P$为抛物线准线$l$上一动点, 线段$PF$与抛物线交于点$Q$, 定义$d(P)=\\dfrac{|FP|}{|FQ|}$.\\\\\n(1) 若点$P$坐标为$(-1,-\\dfrac 83)$, 求$d(P)$;\\\\\n(2) 求证: 存在常数$a$, 使得$2 d(P)=|FP|+a$关于点$P$恒成立.",
"objs": [],
"tags": [],
"genre": "解答题",
"ans": "",
"solution": "",
"duration": -1,
"usages": [],
"origin": "2019年春季高考试题20-20221212修改",
"edit": [
"20221209\t王伟叶",
"20221212\t王慎有",
"20221212\t王伟叶"
],
"same": [],
"related": [
"012222"
],
"remark": "",
"space": "12ex"
}
}