20230215 night

This commit is contained in:
weiye.wang 2023-02-15 06:57:14 +08:00
parent 088cf2efcc
commit 44d30bbd65
7 changed files with 476 additions and 206 deletions

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [
{
@ -11,7 +11,7 @@
"0"
]
},
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
@ -19,7 +19,7 @@
"source": [
"import os,re,json\n",
"\"\"\"这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭, 随后运行第二个代码块\"\"\"\n",
"problems = \"4072\"\n",
"problems = \"31227:31233\"\n",
"\n",
"def generate_number_set(string,dict):\n",
" string = re.sub(r\"[\\n\\s]\",\"\",string)\n",
@ -75,7 +75,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "pythontest",
"display_name": "mathdept",
"language": "python",
"name": "python3"
},
@ -94,7 +94,7 @@
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93"
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
}
}
},

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [
{
@ -45,7 +45,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "pythontest",
"display_name": "mathdept",
"language": "python",
"name": "python3"
},
@ -64,7 +64,7 @@
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93"
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
}
}
},

View File

@ -29,7 +29,10 @@
"mainpath + \"上学期测验卷/\",\n",
"mainpath + \"上学期周末卷/\",\n",
"mainpath + \"赋能/\",\n",
"mainpath + \"寒假作业/\"\n",
"mainpath + \"寒假作业/\",\n",
"mainpath + \"下学期测验卷/\",\n",
"mainpath + \"下学期周末卷/\",\n",
"mainpath + \"第二轮复习讲义/\",\n",
"# mainpath + \"简单题/\",\n",
"]\n",
"\"\"\"---路径设置完毕---\"\"\"\n",

View File

@ -2,15 +2,15 @@
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os,re,json,time\n",
"\n",
"\"\"\"---设置原题目id与新题目id列表, 新id的数目不能小于旧id的数目---\"\"\"\n",
"old_ids = \"12817,13709\"\n",
"new_ids = \"31225:31226\"\n",
"old_ids = \"14365,13966,13975,13088,13100,13145,14003\"\n",
"new_ids = \"31227:31233\"\n",
"\"\"\"---设置完毕---\"\"\"\n",
"\"\"\"---完成编辑后记得运行第二个单元格---\"\"\"\n",
"\n",
@ -106,7 +106,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "pythontest",
"display_name": "mathdept",
"language": "python",
"name": "python3"
},
@ -125,7 +125,7 @@
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93"
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
}
}
},

View File

@ -11,9 +11,11 @@
"text": [
"正在处理题块 1 .\n",
"题块 1 处理完毕.\n",
"开始编译教师版本pdf文件: 临时文件/第一单元_教师_20230214.tex\n",
"正在处理题块 2 .\n",
"题块 2 处理完毕.\n",
"开始编译教师版本pdf文件: 临时文件/13_解析几何综合_教师_20230214.tex\n",
"0\n",
"开始编译学生版本pdf文件: 临时文件/第一单元_学生_20230214.tex\n",
"开始编译学生版本pdf文件: 临时文件/13_解析几何综合_学生_20230214.tex\n",
"0\n"
]
}
@ -26,12 +28,12 @@
"\"\"\"2: 测验卷与周末卷(填空题, 选择题, 解答题)\"\"\"\n",
"\"\"\"3: 日常选题讲义(一个section)\"\"\"\n",
"\n",
"paper_type = 3 # 随后设置一下后续的讲义标题\n",
"paper_type = 1 # 随后设置一下后续的讲义标题\n",
"\n",
"\"\"\"---设置题块编号---\"\"\"\n",
"\n",
"problems = [\n",
"\"3714,3716,3741,3797,3810,3833,3897,3948,3963,13292,13320,13416,13419,13470,13510,13559,13629,13683\"\n",
"\"13997,13116,13118,13119,13143,13108,14478,13992,13989,14503,14505,13982,13112,14020,14483\",\"13979,13136,14459,14491,14479,13121,14012,13999,14485,14506,31233,14509,14014,13124,14019\"\n",
"]\n",
"\n",
"\"\"\"---设置结束---\"\"\"\n",
@ -40,7 +42,7 @@
"if paper_type == 1:\n",
" enumi_mode = 0 #设置模式(1为整卷统一编号, 0为每一部分从1开始编号)\n",
" template_file = \"模板文件/复习讲义模板.txt\" #设置模板文件名\n",
" exec_list = [(\"标题数字待处理\",\"00\"),(\"标题文字待处理\",\"平面向量与复数\")] #设置讲义标题\n",
" exec_list = [(\"标题数字待处理\",\"13\"),(\"标题文字待处理\",\"解析几何综合\")] #设置讲义标题\n",
" destination_file = \"临时文件/\"+exec_list[0][1]+\"_\"+exec_list[1][1] # 设置输出文件名\n",
"elif paper_type == 2:\n",
" enumi_mode = 1 #设置模式(1为整卷统一编号, 0为每一部分从1开始编号)\n",
@ -200,7 +202,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "pythontest",
"display_name": "mathdept",
"language": "python",
"name": "python3"
},
@ -219,7 +221,7 @@
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93"
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
}
}
},

View File

@ -9,32 +9,117 @@
"name": "stdout",
"output_type": "stream",
"text": [
"022022 解答题\n",
"022023 解答题\n",
"022024 解答题\n",
"022025 解答题\n",
"022026 选择题\n",
"022027 解答题\n",
"022028 解答题\n",
"022029 填空题\n",
"022030 解答题\n",
"022031 解答题\n",
"022032 解答题\n",
"022033 解答题\n",
"022034 解答题\n",
"022035 解答题\n",
"022036 解答题\n",
"022037 解答题\n",
"022038 解答题\n",
"022039 解答题\n",
"022040 解答题\n",
"022041 填空题\n",
"022042 解答题\n",
"022043 解答题\n",
"022044 填空题\n",
"022045 填空题\n",
"022046 解答题\n",
"022047 解答题\n"
"014400 解答题\n",
"014401 解答题\n",
"014402 解答题\n",
"014403 解答题\n",
"014404 解答题\n",
"014405 填空题\n",
"014406 选择题\n",
"014407 填空题\n",
"014408 解答题\n",
"014409 填空题\n",
"014410 填空题\n",
"014411 选择题\n",
"014412 选择题\n",
"014413 解答题\n",
"014414 解答题\n",
"014415 解答题\n",
"014416 解答题\n",
"014417 解答题\n",
"014418 填空题\n",
"014419 填空题\n",
"014420 填空题\n",
"014421 解答题\n",
"014422 解答题\n",
"014423 解答题\n",
"014424 填空题\n",
"014425 填空题\n",
"014426 填空题\n",
"014427 选择题\n",
"014428 填空题\n",
"014429 选择题\n",
"014430 填空题\n",
"014431 填空题\n",
"014432 填空题\n",
"014433 解答题\n",
"014434 填空题\n",
"014435 解答题\n",
"014436 选择题\n",
"014437 填空题\n",
"014438 填空题\n",
"014439 填空题\n",
"014440 填空题\n",
"014441 解答题\n",
"014442 解答题\n",
"014443 解答题\n",
"014444 填空题\n",
"014445 填空题\n",
"014446 选择题\n",
"014447 解答题\n",
"014448 填空题\n",
"014449 选择题\n",
"014450 选择题\n",
"014451 填空题\n",
"014452 填空题\n",
"014453 解答题\n",
"014454 填空题\n",
"014455 解答题\n",
"014456 填空题\n",
"014457 填空题\n",
"014458 填空题\n",
"014459 填空题\n",
"014460 填空题\n",
"014461 解答题\n",
"014462 解答题\n",
"014463 解答题\n",
"014464 解答题\n",
"014465 填空题\n",
"014466 填空题\n",
"014467 填空题\n",
"014468 填空题\n",
"014469 填空题\n",
"014470 填空题\n",
"014471 填空题\n",
"014472 填空题\n",
"014473 填空题\n",
"014474 解答题\n",
"014475 填空题\n",
"014476 解答题\n",
"014477 填空题\n",
"014478 填空题\n",
"014479 填空题\n",
"014480 填空题\n",
"014481 解答题\n",
"014482 填空题\n",
"014483 解答题\n",
"014484 选择题\n",
"014485 填空题\n",
"014486 解答题\n",
"014487 填空题\n",
"014488 填空题\n",
"014489 填空题\n",
"014490 填空题\n",
"014491 填空题\n",
"014492 解答题\n",
"014493 填空题\n",
"014494 填空题\n",
"014495 填空题\n",
"014496 填空题\n",
"014497 选择题\n",
"014498 解答题\n",
"014499 解答题\n",
"014500 填空题\n",
"014501 解答题\n",
"014502 解答题\n",
"014503 填空题\n",
"014504 填空题\n",
"014505 填空题\n",
"014506 选择题\n",
"014507 解答题\n",
"014508 解答题\n",
"014509 填空题\n",
"014510 解答题\n"
]
}
],
@ -76,7 +161,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "pythontest",
"display_name": "mathdept",
"language": "python",
"name": "python3"
},
@ -95,7 +180,7 @@
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93"
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
}
}
},

File diff suppressed because it is too large Load Diff