20230309 evening

This commit is contained in:
WangWeiye 2023-03-09 18:09:19 +08:00
parent 4ded40dfa1
commit 29312aa5a9
7 changed files with 32 additions and 27 deletions

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 5,
"metadata": {},
"outputs": [
{
@ -11,7 +11,7 @@
"0"
]
},
"execution_count": 1,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
@ -19,7 +19,7 @@
"source": [
"import os,re,json\n",
"\"\"\"这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭, 随后运行第二个代码块\"\"\"\n",
"problems = \"40196\"\n",
"problems = \"4067\"\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": 2,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 8,
"metadata": {},
"outputs": [
{
@ -11,7 +11,7 @@
"0"
]
},
"execution_count": 3,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
@ -21,7 +21,7 @@
"\n",
"\"\"\"---设置关键字, 同一field下不同选项为or关系, 同一字典中不同字段间为and关系, 不同字典间为or关系, _not表示列表中的关键字都不含, 同一字典中的数字用来供应同一字段不同的条件之间的and---\"\"\"\n",
"keywords_dict_table = [\n",
" {\"tags\":[\"第一单元\"],\"usages\":[r\"0\\.[2345]\\d{2}\"]},\n",
" {\"content\":[r\"[\\s\\S]{300}\"],\"usages2\":[r\"0\\.[67]\\d{2}\"],\"genre\":[r\"解答题\"]},\n",
"]\n",
"\"\"\"---关键字设置完毕---\"\"\"\n",
"# 示例: keywords_dict_table = [\n",

View File

@ -2,15 +2,15 @@
"cells": [
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"首行题目数量: 301\n",
"剩余题目数量: 259\n"
"首行题目数量: 241\n",
"剩余题目数量: 108\n"
]
}
],

View File

@ -1 +1 @@
3617,11704,3594,3618,3674,9992,11583,11640,11682,12169,12171,12190,12233,12251,12363,12392,12748,31214
000982,001124,001156,001173,001174,001198,001279,001384,001388,001602,001604,001621,001855,001885,001900,001991,002119,004075,004076,004077,004079,004099,004120,004162,004163,004205,004225,004226,004244,004246,004268,004288,004330,004331,004351,004369,004371,004373,004408,004445,004549,004595,004598,004599,004611,004616,004617,004618,004638,004656,004658,004677,004721,004722,004742,004743,010905,010906,010913,010916,010917,010918,012025,020144,020503,020520,020852,020866,020879,020883,020884,020885,020888,020896,020898,020899,020901,020902,020903,020907,020914,020915,020916,020925,020931,020947,020957,020962,020963,020964,020986,020994,021001,021126,021131,021170,021171,021176,021332,030521,030523,030525,030531,030582,030588,031284,031286,031306

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"metadata": {},
"outputs": [
{
@ -11,9 +11,13 @@
"text": [
"正在处理题块 1 .\n",
"题块 1 处理完毕.\n",
"开始编译教师版本pdf文件: 临时文件/第二讲_教师_20230309.tex\n",
"正在处理题块 2 .\n",
"题块 2 处理完毕.\n",
"正在处理题块 3 .\n",
"题块 3 处理完毕.\n",
"开始编译教师版本pdf文件: 临时文件/高三下学期测验03_教师_20230309.tex\n",
"0\n",
"开始编译学生版本pdf文件: 临时文件/第二讲_学生_20230309.tex\n",
"开始编译学生版本pdf文件: 临时文件/高三下学期测验03_学生_20230309.tex\n",
"0\n"
]
}
@ -26,12 +30,12 @@
"\"\"\"2: 测验卷与周末卷(填空题, 选择题, 解答题)\"\"\"\n",
"\"\"\"3: 日常选题讲义(一个section)\"\"\"\n",
"\n",
"paper_type = 3 # 随后设置一下后续的讲义标题\n",
"paper_type = 2 # 随后设置一下后续的讲义标题\n",
"\n",
"\"\"\"---设置题块编号---\"\"\"\n",
"\n",
"problems = [\n",
"\"003709,013438,013354,003726,013368,013502,013505,003778,003783,013356,013314,003892,013418,013388,003757,003953,013375,013481,013495\"\n",
"\"4353,4270,4254,4145,4083,4232,4216,4149,4172,4089,4415,4067\",\"4135,4136,31282,3625\",\"4159,4442,4721,4246,4352\"\n",
"]\n",
"\n",
"\"\"\"---设置结束---\"\"\"\n",
@ -45,7 +49,7 @@
"elif paper_type == 2:\n",
" enumi_mode = 1 #设置模式(1为整卷统一编号, 0为每一部分从1开始编号)\n",
" template_file = \"模板文件/测验周末卷模板.txt\" #设置模板文件名\n",
" exec_list = [(\"标题替换\",\"高三下学期月考01\")] #设置讲义标题\n",
" exec_list = [(\"标题替换\",\"高三下学期测验03\")] #设置讲义标题\n",
" destination_file = \"临时文件/\"+exec_list[0][1] # 设置输出文件名\n",
"elif paper_type == 3:\n",
" enumi_mode = 0 #设置模式(1为整卷统一编号, 0为每一部分从1开始编号)\n",

View File

@ -2,16 +2,16 @@
"cells": [
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"开始编译教师版本pdf文件: 临时文件/第六章选题_教师用_20230306.tex\n",
"开始编译教师版本pdf文件: 临时文件/测验03选题_教师用_20230309.tex\n",
"0\n",
"开始编译学生版本pdf文件: 临时文件/第六章选题_学生用_20230306.tex\n",
"开始编译学生版本pdf文件: 临时文件/测验03选题_学生用_20230309.tex\n",
"0\n"
]
}
@ -26,14 +26,13 @@
"\"\"\"---设置题目列表---\"\"\"\n",
"#留空为编译全题库, a为读取临时文件中的题号筛选.txt文件生成题库\n",
"problems = r\"\"\"\n",
"010205,010207,010208,010211,010213,010214,010216,010217,010220,010222:010234,010236,010238:010240,010242,010243,010247:010249,010251,010252,010256:010262,010264,010265,010267,010270:010272,000095:000097,000100:000102,000104:000106,000108,000109,000111:000114,000116:000118\n",
"\n",
"a\n",
"\"\"\"\n",
"\"\"\"---设置题目列表结束---\"\"\"\n",
"\n",
"\"\"\"---设置文件名---\"\"\"\n",
"#目录和文件的分隔务必用/\n",
"filename = \"临时文件/第六章选题\"\n",
"filename = \"临时文件/测验03选题\"\n",
"\"\"\"---设置文件名结束---\"\"\"\n",
"\n",
"\"\"\"---设置是否需要解答题的空格---\"\"\"\n",
@ -147,6 +146,8 @@
" latex_raw = re.sub(r\"fontset[\\s]*=[\\s]*none\",\"fontset = fandol\",latex_raw)\n",
" latex_raw = re.sub(r\"\\\\setCJKmainfont\",r\"% \\\\setCJKmainfont\",latex_raw)\n",
"\n",
"latex_raw = re.sub(r\"\\tableofcontents\",\"\",latex_raw)\n",
"\n",
"latex_teachers = latex_raw.replace(\"编译模板\",data_teachers)\n",
"with open(teachers_latex_file,\"w\",encoding = \"utf8\") as f:\n",
" f.write(latex_teachers)\n",
@ -190,7 +191,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"version": "3.8.15"
},
"orig_nbformat": 4,
"vscode": {

View File

@ -108829,7 +108829,7 @@
},
"004067": {
"id": "004067",
"content": "已知定义在$\\mathbf{R}$上的函数$f(x)$满足: \\textcircled{1} $f(x)+f(2-x)=0$; \\textcircled{2} $f(x)-f(-2-x)=0$; \\textcircled{3} 在$[-1,1]$上表达式为$f(x)=\\begin{cases} \\sqrt{1-x^2}, & x\\in [-1,0], \\\\ 1-x, & x\\in (0,1], \\end{cases}$ 则函数$f(x)$与$g(x)=\\begin{cases} {2^x}, & x\\le 0 \\\\ \\log_\\frac 12x, & x>0 \\end{cases}$的图像在区间$[-3,3]$上的交点的个数为\\blank{50}.",
"content": "已知定义在$\\mathbf{R}$上的函数$f(x)$满足: \\textcircled{1} $f(x)+f(2-x)=0$; \\textcircled{2} $f(x)-f(-2-x)=0$; \\textcircled{3} 在$[-1,1]$上表达式为$f(x)=\\begin{cases} \\sqrt{1-x^2}, & x\\in [-1,0], \\\\ 1-x, & x\\in (0,1], \\end{cases}$ 则函数$f(x)$与$g(x)=\\begin{cases} {2^x}, & x\\le 0, \\\\ \\log_\\frac 12x, & x>0 \\end{cases}$的图像在区间$[-3,3]$上的交点的个数为\\blank{50}.",
"objs": [
"K0218001B",
"K0223004B"
@ -111872,7 +111872,7 @@
},
"004172": {
"id": "004172",
"content": "在$\\triangle ABC$中, 已知$AB=1$, $BC=2$, 若$y=\\begin{vmatrix}\n\\cos C & \\sin C \\\\ \\sin C & \\cos C \\end{vmatrix}$, 则$y$的最小值是\\blank{50}.",
"content": "在$\\triangle ABC$中, 已知$AB=1$, $BC=2$, 若$y=\\cos^2 C-\\sin^2 C$, 则$y$的最小值是\\blank{50}.",
"objs": [],
"tags": [
"第三单元"
@ -116783,7 +116783,7 @@
},
"004353": {
"id": "004353",
"content": "已知全集$U=\\{x|x<2\\}$, 集合$A=\\{x|x<1\\}$, 则$\\complement_UA=$\\blank{50}.",
"content": "已知全集$U=\\{x|x<2\\}$, 集合$A=\\{x|x<1\\}$, 则$\\overline{A}=$\\blank{50}.",
"objs": [
"K0104006B"
],