20230323 afternoon
This commit is contained in:
parent
8719e6ac68
commit
6fa100c8d0
|
|
@ -2,7 +2,7 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 19,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
"0"
|
||||
]
|
||||
},
|
||||
"execution_count": 1,
|
||||
"execution_count": 19,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
"source": [
|
||||
"import os,re,json\n",
|
||||
"\"\"\"这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭, 随后运行第二个代码块\"\"\"\n",
|
||||
"problems = \"30426\"\n",
|
||||
"problems = \"31353\"\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": 18,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
|
|
@ -18,11 +18,11 @@
|
|||
"#在 模板文件 目录中保留 赋能template.txt.\n",
|
||||
"#在 临时文件/赋能答题纸 目录中保留output目录.\n",
|
||||
"\"\"\"---设置文件名---\"\"\"\n",
|
||||
"filename = \"赋能21\"\n",
|
||||
"filename = \"赋能30\"\n",
|
||||
"\n",
|
||||
"\"\"\"---设置题目列表---\"\"\"\n",
|
||||
"problems = r\"\"\"\n",
|
||||
"536:542,31243,544,545\n",
|
||||
"626:630,13307,632:635\n",
|
||||
"\n",
|
||||
"\"\"\"\n",
|
||||
"#完成后将含有 filename 的文件移至其它目录\n",
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
"for id in problem_list:\n",
|
||||
" problemset = pro_dict[id]\n",
|
||||
" problem = problemset[\"content\"]\n",
|
||||
" data_problems += \"\\\\item \" + \"{\\\\tiny (\"+id+\")}\"+problem + \"\\n\\n\"\n",
|
||||
" data_problems += \"\\\\item \" + \"{\\\\tiny (\"+id+\")} \"+problem + \"\\n\\n\"\n",
|
||||
"texdata = texdata.replace(\"题目待替换\",data_problems)\n",
|
||||
"\n",
|
||||
"with open(\"临时文件/赋能答题纸/output/\"+filename+\".tex\",\"w\",encoding=\"utf8\") as f:\n",
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "mathdept",
|
||||
"display_name": "pythontest",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
"orig_nbformat": 4,
|
||||
"vscode": {
|
||||
"interpreter": {
|
||||
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
|
||||
"hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
"text": [
|
||||
"首个空闲id: 14764 , 直至 020000\n",
|
||||
"首个空闲id: 22106 , 直至 030000\n",
|
||||
"首个空闲id: 31357 , 直至 040000\n",
|
||||
"首个空闲id: 31358 , 直至 040000\n",
|
||||
"首个空闲id: 40246 , 直至 999999\n"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,16 +2,16 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"开始编译教师版本pdf文件: 临时文件/本学期高一高二年级新试卷_教师用_20230319.tex\n",
|
||||
"开始编译教师版本pdf文件: 临时文件/赋能31to42_教师用_20230323.tex\n",
|
||||
"0\n",
|
||||
"开始编译学生版本pdf文件: 临时文件/本学期高一高二年级新试卷_学生用_20230319.tex\n",
|
||||
"开始编译学生版本pdf文件: 临时文件/赋能31to42_学生用_20230323.tex\n",
|
||||
"0\n"
|
||||
]
|
||||
}
|
||||
|
|
@ -23,26 +23,41 @@
|
|||
"模板文件目录下 题目清单.tex 文件不能缺失\n",
|
||||
"\"\"\"\n",
|
||||
"\n",
|
||||
"\"\"\"---设置是否在学生版中提供答案---\"\"\"\n",
|
||||
"answered = True\n",
|
||||
"\n",
|
||||
"\"\"\"---设置题目列表---\"\"\"\n",
|
||||
"#字典字段为文件名, 之后为内容的题号\n",
|
||||
"problems_dict = {\n",
|
||||
"\"2024届高二下学期周末卷01\":\"40001:40017\",\n",
|
||||
"\"2025届高一下学期周末卷01\":\"40018:40036\",\n",
|
||||
"\"2024届高二下学期周末卷02\":\"40037:40056\",\n",
|
||||
"\"2025届高一下学期周末卷02\":\"40057:40082\",\n",
|
||||
"\"2025届高一下学期周末卷03\":\"40083:40104\",\n",
|
||||
"\"2025届高一下学期周末卷03小测\":\"40105:40112\",\n",
|
||||
"\"2025届高一下学期周末卷04旧版\":\"40113:40130\",\n",
|
||||
"\"2025届高一下学期周末卷04小测\":\"40131:40139\",\n",
|
||||
"\"2024届高二下学期周末卷03\":\"40140:40160\",\n",
|
||||
"\"2024届高二上学期期末考试\":\"31267:31287\",\n",
|
||||
"\"2025届高一上学期期末考试\":\"31288:31308\",\n",
|
||||
"\"2024届高二下学期周末卷04\":\"40161:40180\",\n",
|
||||
"\"2025届高一下学期周末卷04\":\"40181:40201\",\n",
|
||||
"\"2024届高二下学期周末卷05\":\"40202:40225\",\n",
|
||||
"\"2025届高一下学期周末卷05\":\"40226:40245\",\n",
|
||||
"\"2024届空间向量校本作业\":\"22048:22083\",\n",
|
||||
"\"2024届二项式定理校本作业\":\"22084:22105\"\n",
|
||||
"# \"2024届高二下学期周末卷01\":\"40001:40017\",\n",
|
||||
"# \"2025届高一下学期周末卷01\":\"40018:40036\",\n",
|
||||
"# \"2024届高二下学期周末卷02\":\"40037:40056\",\n",
|
||||
"# \"2025届高一下学期周末卷02\":\"40057:40082\",\n",
|
||||
"# \"2025届高一下学期周末卷03\":\"40083:40104\",\n",
|
||||
"# \"2025届高一下学期周末卷03小测\":\"40105:40112\",\n",
|
||||
"# \"2025届高一下学期周末卷04旧版\":\"40113:40130\",\n",
|
||||
"# \"2025届高一下学期周末卷04小测\":\"40131:40139\",\n",
|
||||
"# \"2024届高二下学期周末卷03\":\"40140:40160\",\n",
|
||||
"# \"2024届高二上学期期末考试\":\"31267:31287\",\n",
|
||||
"# \"2025届高一上学期期末考试\":\"31288:31308\",\n",
|
||||
"# \"2024届高二下学期周末卷04\":\"40161:40180\",\n",
|
||||
"# \"2025届高一下学期周末卷04\":\"40181:40201\",\n",
|
||||
"# \"2024届高二下学期周末卷05\":\"40202:40225\",\n",
|
||||
"# \"2025届高一下学期周末卷05\":\"40226:40245\",\n",
|
||||
"# \"2024届空间向量校本作业\":\"22048:22083\",\n",
|
||||
"# \"2024届二项式定理校本作业\":\"22084:22105\"\n",
|
||||
"\"赋能31\":\"636:645\",\n",
|
||||
"\"赋能32\":\"646:655\",\n",
|
||||
"\"赋能33\":\"656:665\",\n",
|
||||
"\"赋能34\":\"666:675\",\n",
|
||||
"\"赋能35\":\"676:685\",\n",
|
||||
"\"赋能36\":\"686:695\",\n",
|
||||
"\"赋能37\":\"696:705\",\n",
|
||||
"\"赋能38\":\"706:715\",\n",
|
||||
"\"赋能39\":\"716:725\",\n",
|
||||
"\"赋能40\":\"726:735\",\n",
|
||||
"\"赋能41\":\"736:745\",\n",
|
||||
"\"赋能42\":\"746:755\"\n",
|
||||
"\n",
|
||||
"}\n",
|
||||
"\n",
|
||||
|
|
@ -51,7 +66,7 @@
|
|||
"\"\"\"---设置文件保存路径---\"\"\"\n",
|
||||
"#目录和文件的分隔务必用/\n",
|
||||
"directory = \"临时文件/\"\n",
|
||||
"filename = \"本学期高一高二年级新试卷\"\n",
|
||||
"filename = \"赋能31to42\"\n",
|
||||
"\"\"\"---设置文件名结束---\"\"\"\n",
|
||||
"if directory[-1] != \"/\":\n",
|
||||
" directory += \"/\"\n",
|
||||
|
|
@ -159,6 +174,8 @@
|
|||
" raw_string = \"\\\\item \" + \"{\\\\tiny (\"+id+\")} \"+problem\n",
|
||||
" teachers_string = raw_string.replace(\"\\\\tiny\",\"\")+\"\\n\\n关联目标:\\n\\n\"+ objects + \"\\n\\n标签: \" + tags + \"\\n\\n答案: \"+answer + \"\\n\\n\" + \"解答或提示: \" + solution + \"\\n\\n使用记录:\\n\\n\"+ usage + \"\\n\" + \"\\n\\n出处: \"+origin + \"\\n\\n\"\n",
|
||||
" students_string = raw_string + space + \"\\n\\n\"\n",
|
||||
" if answered:\n",
|
||||
" students_string += \"答案: \\\\textcolor{red}{\"+answer + \"}\\n\\n\"\n",
|
||||
" data_teachers += teachers_string\n",
|
||||
" data_students += students_string\n",
|
||||
"\n",
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import os,re,json,time\n",
|
||||
"\n",
|
||||
"\"\"\"---设置原题目id与新题目id列表, 新id的数目不能小于旧id的数目---\"\"\"\n",
|
||||
"old_ids = \"21416,21433,21434,30409\"\n",
|
||||
"new_ids = \"31353:31356\"\n",
|
||||
"old_ids = \"603\"\n",
|
||||
"new_ids = \"31360\"\n",
|
||||
"\"\"\"---设置完毕---\"\"\"\n",
|
||||
"\"\"\"---完成编辑后记得运行第二个单元格---\"\"\"\n",
|
||||
"\n",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -9,50 +9,66 @@
|
|||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"040202 填空题\n",
|
||||
"040203 填空题\n",
|
||||
"040204 填空题\n",
|
||||
"040205 填空题\n",
|
||||
"040206 填空题\n",
|
||||
"040207 填空题\n",
|
||||
"040208 填空题\n",
|
||||
"040209 填空题\n",
|
||||
"040210 填空题\n",
|
||||
"040211 填空题\n",
|
||||
"040212 填空题\n",
|
||||
"040213 填空题\n",
|
||||
"040214 填空题\n",
|
||||
"040215 填空题\n",
|
||||
"040216 填空题\n",
|
||||
"040217 填空题\n",
|
||||
"040218 填空题\n",
|
||||
"040219 填空题\n",
|
||||
"040220 填空题\n",
|
||||
"040221 解答题\n",
|
||||
"040222 选择题\n",
|
||||
"040223 选择题\n",
|
||||
"040224 解答题\n",
|
||||
"040225 解答题\n",
|
||||
"040226 填空题\n",
|
||||
"040227 填空题\n",
|
||||
"040228 填空题\n",
|
||||
"040229 填空题\n",
|
||||
"040230 填空题\n",
|
||||
"040231 填空题\n",
|
||||
"040232 填空题\n",
|
||||
"040233 填空题\n",
|
||||
"040234 填空题\n",
|
||||
"040235 填空题\n",
|
||||
"040236 填空题\n",
|
||||
"040237 填空题\n",
|
||||
"040238 填空题\n",
|
||||
"040239 填空题\n",
|
||||
"040240 填空题\n",
|
||||
"040241 填空题\n",
|
||||
"040242 解答题\n",
|
||||
"040243 解答题\n",
|
||||
"040244 解答题\n",
|
||||
"040245 解答题\n"
|
||||
"022048 解答题\n",
|
||||
"022049 解答题\n",
|
||||
"022050 解答题\n",
|
||||
"022051 解答题\n",
|
||||
"022052 解答题\n",
|
||||
"022053 解答题\n",
|
||||
"022054 解答题\n",
|
||||
"022055 解答题\n",
|
||||
"022056 解答题\n",
|
||||
"022057 解答题\n",
|
||||
"022058 填空题\n",
|
||||
"022059 解答题\n",
|
||||
"022060 解答题\n",
|
||||
"022061 解答题\n",
|
||||
"022062 解答题\n",
|
||||
"022063 解答题\n",
|
||||
"022064 解答题\n",
|
||||
"022065 解答题\n",
|
||||
"022066 解答题\n",
|
||||
"022067 解答题\n",
|
||||
"022068 解答题\n",
|
||||
"022069 解答题\n",
|
||||
"022070 解答题\n",
|
||||
"022071 解答题\n",
|
||||
"022072 解答题\n",
|
||||
"022073 解答题\n",
|
||||
"022074 解答题\n",
|
||||
"022075 解答题\n",
|
||||
"022076 解答题\n",
|
||||
"022077 解答题\n",
|
||||
"022078 解答题\n",
|
||||
"022079 解答题\n",
|
||||
"022080 解答题\n",
|
||||
"022081 解答题\n",
|
||||
"022082 解答题\n",
|
||||
"022083 解答题\n",
|
||||
"022084 解答题\n",
|
||||
"022085 解答题\n",
|
||||
"022086 解答题\n",
|
||||
"022087 解答题\n",
|
||||
"022088 选择题\n",
|
||||
"022089 解答题\n",
|
||||
"022090 解答题\n",
|
||||
"022091 解答题\n",
|
||||
"022092 解答题\n",
|
||||
"022093 解答题\n",
|
||||
"022094 解答题\n",
|
||||
"022095 填空题\n",
|
||||
"022096 选择题\n",
|
||||
"022097 解答题\n",
|
||||
"022098 解答题\n",
|
||||
"022099 解答题\n",
|
||||
"022100 解答题\n",
|
||||
"022101 解答题\n",
|
||||
"022102 解答题\n",
|
||||
"022103 解答题\n",
|
||||
"022104 解答题\n",
|
||||
"022105 解答题\n",
|
||||
"031358 填空题\n",
|
||||
"031359 填空题\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Reference in New Issue