20220924 evening

This commit is contained in:
weiye.wang 2022-09-24 23:09:08 +08:00
parent 282a1782cf
commit 51b196dcb5
7 changed files with 638 additions and 204 deletions

View File

@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 2,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -17,11 +17,11 @@
"#在 临时文件/赋能答题纸 目录中保留一个pdf(赋能试卷的答题纸), 不留别的pdf文件. \n", "#在 临时文件/赋能答题纸 目录中保留一个pdf(赋能试卷的答题纸), 不留别的pdf文件. \n",
"#在 临时文件/赋能答题纸 目录中保留 赋能template.tex.\n", "#在 临时文件/赋能答题纸 目录中保留 赋能template.tex.\n",
"\"\"\"---设置文件名---\"\"\"\n", "\"\"\"---设置文件名---\"\"\"\n",
"filename = \"赋能02\"\n", "filename = \"赋能03\"\n",
"\n", "\n",
"\"\"\"---设置题目列表---\"\"\"\n", "\"\"\"---设置题目列表---\"\"\"\n",
"problems = r\"\"\"\n", "problems = r\"\"\"\n",
"1750,337,2675,339:345\n", "346,347,348,349,30071,351,352,30072,354,30073\n",
"\"\"\"\n", "\"\"\"\n",
"#完成后将含有 filename 的文件移至其它目录\n", "#完成后将含有 filename 的文件移至其它目录\n",
"\n", "\n",

View File

@ -2,47 +2,37 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 2,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"题号: 003148 , 字段: ans 中已修改数据: $\\{x|\\dfrac\\pi 2+2k\\pi\\le x\\le \\dfrac{3\\pi}2+2k\\pi, \\ k\\in \\mathbf{Z}\\}$\n", "题号: 002835 , 字段: objs 中已添加数据: K0215001B\n",
"题号: 003155 , 字段: ans 中已修改数据: (1) $\\{x|2k\\pi<x<2k\\pi+\\dfrac\\pi 2\\text{或}2k\\pi+\\dfrac \\pi 2<x<2k\\pi+\\dfrac{2\\pi}3, \\ k\\in \\mathbf{Z}\\}$, (2) $(-4,-\\pi]\\cup [0,\\pi]$\n", "题号: 002835 , 字段: objs 中已添加数据: K0216005B\n",
"题号: 003158 , 字段: ans 中已修改数据: $[-2,1]$\n", "题号: 030025 , 字段: objs 中已添加数据: K0215003B\n",
"题号: 003149 , 字段: ans 中已修改数据: $[-1,2]$\n", "题号: 030041 , 字段: objs 中已添加数据: K0204004B\n",
"题号: 003156 , 字段: ans 中已修改数据: (1) $y_{\\min}=1-\\sqrt{2}$, $y_{\\max}=1+\\sqrt{2}$; (2) $y_{\\min}=-\\dfrac 12$, $y_{\\max}=\\dfrac{\\sqrt{2}}4$; (3) $y_{\\min}=0$, $y_{\\max}=2$.\n", "题号: 030041 , 字段: objs 中已添加数据: K0206002B\n",
"题号: 003163 , 字段: ans 中已修改数据: $-1$\n", "题号: 030042 , 字段: objs 中已添加数据: K0220002B\n",
"题号: 003162 , 字段: ans 中已修改数据: $[4,+\\infty)$\n", "题号: 030042 , 字段: objs 中已添加数据: K0219003B\n",
"题号: 000119 , 字段: ans 中已修改数据: (1) $4\\pi$; (2) $\\dfrac{2\\pi}3$.\n", "题号: 030043 , 字段: objs 中已添加数据: K0214002B\n",
"题号: 003175 , 字段: ans 中已修改数据: (1) 值域为$[-2,2]$, 周期为$\\pi$; (2) $[\\dfrac\\pi{12},\\dfrac\\pi 2]$; (3) $\\dfrac{\\pi}{12}$; (4) $(-\\infty,-2]\\cup [1,+\\infty)$.\n", "题号: 030044 , 字段: objs 中已添加数据: K0214002B\n",
"题号: 008287 , 字段: ans 中已修改数据: \\begin{tikzpicture}[>=latex,scale = 0.5]\n", "题号: 030045 , 字段: objs 中已添加数据: K0215003B\n",
"\\draw [->] (-1,0) -- (15,0) node [below] {$x$};\n", "题号: 030046 , 字段: objs 中已添加数据: K0219001B\n",
"\\draw [->] (0,-3) -- (0,3) node [left] {$y$};\n", "题号: 030046 , 字段: objs 中已添加数据: K0219003B\n",
"\\draw (0,0) node [below left] {$O$};\n", "题号: 030046 , 字段: objs 中已添加数据: K0220001B\n",
"\\draw [domain = 0:720] plot ({\\x/180*pi},{2*sin(\\x/2)});\n", "题号: 030047 , 字段: objs 中已添加数据: K0219003B\n",
"\\draw [dashed] (pi,0) node [below] {$\\pi$} -- (pi,2) -- (0,2) node [left] {$2$};\n", "题号: 030048 , 字段: objs 中已添加数据: K0219001B\n",
"\\draw [dashed] ({3*pi},0) node [above] {$3\\pi$} -- ({3*pi},-2) -- (0,-2) node [left] {$-2$};\n", "题号: 030049 , 字段: objs 中已添加数据: K0218001B\n",
"\\draw ({4*pi},0) node [above] {$4\\pi$} ({2*pi},0) node [below left] {$2\\pi$};\n", "题号: 030050 , 字段: objs 中已添加数据: K0223001B\n",
"\\end{tikzpicture}\n", "题号: 030050 , 字段: objs 中已添加数据: K0223004B\n",
"题号: 003169 , 字段: ans 中已修改数据: $y=\\sin(2x+\\dfrac\\pi 3)$\n", "题号: 030051 , 字段: objs 中已添加数据: K0234003X\n",
"题号: 001554 , 字段: ans 中已修改数据: \\textcircled{1} 横坐标不变, 纵坐标变为原来的$\\dfrac 12$倍, \\textcircled{2} 向上平移$\\dfrac 54$个单位, \\textcircled{3} 向左平移$\\dfrac \\pi 6$个单位, \\textcircled{4} 纵坐标不变, 横坐标变为原来的$\\dfrac 12$倍.\n", "题号: 030052 , 字段: objs 中已添加数据: K0221002B\n",
"题号: 003176 , 字段: ans 中已修改数据: $f(x)=-4\\sin(\\dfrac \\pi 8 x+\\dfrac \\pi 4)$\n", "题号: 030053 , 字段: objs 中已添加数据: K0221002B\n",
"题号: 003178 , 字段: ans 中已修改数据: B\n", "题号: 030060 , 字段: objs 中已添加数据: K0221002B\n",
"题号: 003181 , 字段: ans 中已修改数据: $-\\dfrac{\\sqrt{3}}3$\n", "题号: 030073 , 字段: objs 中已添加数据: K0218001B\n",
"题号: 003167 , 字段: ans 中已有该数据: \n", "题号: 030073 , 字段: objs 中已添加数据: K0219001B\n"
"题号: 003171 , 字段: ans 中已有该数据: \n",
"题号: 003166 , 字段: ans 中已有该数据: \n",
"题号: 003168 , 字段: ans 中已有该数据: \n",
"题号: 008337 , 字段: ans 中已有该数据: \n",
"题号: 003153 , 字段: ans 中已有该数据: \n",
"题号: 003160 , 字段: ans 中已有该数据: \n",
"题号: 003183 , 字段: ans 中已有该数据: \n",
"题号: 003164 , 字段: ans 中已有该数据: \n",
"题号: 003182 , 字段: ans 中已有该数据: \n",
"题号: 000131 , 字段: ans 中已有该数据: \n"
] ]
} }
], ],

View File

@ -2,15 +2,15 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 47, "execution_count": 5,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"import os,re,json,time\n", "import os,re,json,time\n",
"\n", "\n",
"\"\"\"---设置原题目id与新题目id---\"\"\"\n", "\"\"\"---设置原题目id与新题目id---\"\"\"\n",
"old_id = \"3181\"\n", "old_id = \"355\"\n",
"new_id = \"30068\"\n", "new_id = \"30073\"\n",
"\"\"\"---设置完毕---\"\"\"\n", "\"\"\"---设置完毕---\"\"\"\n",
"\n", "\n",
"old_id = old_id.zfill(6)\n", "old_id = old_id.zfill(6)\n",

View File

@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 4,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -11,9 +11,11 @@
"text": [ "text": [
"正在处理题块 1 .\n", "正在处理题块 1 .\n",
"题块 1 处理完毕.\n", "题块 1 处理完毕.\n",
"开始编译教师版本pdf文件: 临时文件/国庆卷_教师_20220924.tex\n", "正在处理题块 2 .\n",
"题块 2 处理完毕.\n",
"开始编译教师版本pdf文件: 临时文件/17_平面向量的投影及数量积_教师_20220924.tex\n",
"0\n", "0\n",
"开始编译学生版本pdf文件: 临时文件/国庆卷_学生_20220924.tex\n", "开始编译学生版本pdf文件: 临时文件/17_平面向量的投影及数量积_学生_20220924.tex\n",
"0\n" "0\n"
] ]
} }
@ -26,34 +28,35 @@
"\"\"\"---设置模式结束---\"\"\"\n", "\"\"\"---设置模式结束---\"\"\"\n",
"\n", "\n",
"\"\"\"---设置模板文件名---\"\"\"\n", "\"\"\"---设置模板文件名---\"\"\"\n",
"# template_file = \"模板文件/第一轮复习讲义模板.tex\"\n", "template_file = \"模板文件/第一轮复习讲义模板.tex\"\n",
"# template_file = \"模板文件/测验周末卷模板.tex\"\n", "# template_file = \"模板文件/测验周末卷模板.tex\"\n",
"template_file = \"模板文件/日常选题讲义模板.tex\"\n", "# template_file = \"模板文件/日常选题讲义模板.tex\"\n",
"\"\"\"---设置模板文件名结束---\"\"\"\n", "\"\"\"---设置模板文件名结束---\"\"\"\n",
"\n", "\n",
"\"\"\"---设置其他预处理替换命令---\"\"\"\n", "\"\"\"---设置其他预处理替换命令---\"\"\"\n",
"#2023届第一轮讲义更换标题\n", "#2023届第一轮讲义更换标题\n",
"# exec_list = [(\"标题数字待处理\",\"19\"),(\"标题文字待处理\",\"复数的几何意义与实系数二次方程\")] \n", "exec_list = [(\"标题数字待处理\",\"17\"),(\"标题文字待处理\",\"平面向量的投影及数量积\")] \n",
"# enumi_mode = 0\n", "enumi_mode = 0\n",
"\n", "\n",
"#2023届测验卷与周末卷\n", "#2023届测验卷与周末卷\n",
"# exec_list = [(\"标题替换\",\"周末卷03\")]\n", "# exec_list = [(\"标题替换\",\"周末卷03\")]\n",
"# enumi_mode = 1\n", "# enumi_mode = 1\n",
"\n", "\n",
"#日常选题讲义\n", "#日常选题讲义\n",
"exec_list = [(\"标题文字待处理\",\"2022年国庆卷(易错题订正)\")] \n", "# exec_list = [(\"标题文字待处理\",\"2022年国庆卷(易错题订正)\")] \n",
"enumi_mode = 0\n", "# enumi_mode = 0\n",
"\n", "\n",
"\"\"\"---其他预处理替换命令结束---\"\"\"\n", "\"\"\"---其他预处理替换命令结束---\"\"\"\n",
"\n", "\n",
"\"\"\"---设置目标文件名---\"\"\"\n", "\"\"\"---设置目标文件名---\"\"\"\n",
"destination_file = \"临时文件/国庆卷\"\n", "destination_file = \"临时文件/17_平面向量的投影及数量积\"\n",
"\"\"\"---设置目标文件名结束---\"\"\"\n", "\"\"\"---设置目标文件名结束---\"\"\"\n",
"\n", "\n",
"\n", "\n",
"\"\"\"---设置题号数据---\"\"\"\n", "\"\"\"---设置题号数据---\"\"\"\n",
"problems = [\n", "problems = [\n",
"\"30029:30068\"\n", "\"481,3347,3330,153,3356,414,1882,141,3341,1892,1896,1898,1916,1905,1902\",\n",
"\"894,1912,1914,871,1877,760,792,142,1906,1913,1886,3345,1911,159\"\n",
"]\n", "]\n",
"\"\"\"---设置题号数据结束---\"\"\"\n", "\"\"\"---设置题号数据结束---\"\"\"\n",
"\n", "\n",

View File

@ -9,8 +9,8 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"开始编译单元与课时目标信息pdf文件: 临时文件/课时目标及单元目标_20220918.tex\n", "开始编译单元与课时目标信息pdf文件: 临时文件/课时目标及单元目标_20220924.tex\n",
"开始编译课时划分信息pdf文件: 临时文件/课时划分_20220918.tex\n" "开始编译课时划分信息pdf文件: 临时文件/课时划分_20220924.tex\n"
] ]
}, },
{ {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long