20230113 afternoon

This commit is contained in:
WangWeiye 2023-01-13 15:29:31 +08:00
parent edf708cd1f
commit e3b8618e49
11 changed files with 657 additions and 216 deletions

View File

@ -19,7 +19,7 @@
"source": [
"import os,re,json\n",
"\"\"\"这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭, 随后运行第二个代码块\"\"\"\n",
"problems = \"31196\"\n",
"problems = \"12763\"\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": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
@ -75,7 +75,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.13 ('base')",
"display_name": "Python 3.8.15 ('mathdept')",
"language": "python",
"name": "python3"
},
@ -89,12 +89,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.8.15"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "ad2bdc8ecc057115af97d19610ffacc2b4e99fae6737bb82f5d7fb13d2f2c186"
"hash": "42dd566da87765ddbe9b5c5b483063747fec4aacc5469ad554706e4b742e67b2"
}
}
},

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
@ -11,7 +11,7 @@
"text": [
"首个空闲id: 12760 , 直至 020000\n",
"首个空闲id: 21441 , 直至 030000\n",
"首个空闲id: 31201 , 直至 999999\n"
"首个空闲id: 31204 , 直至 999999\n"
]
}
],

View File

@ -2,16 +2,14 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"题号: 031201 , 字段: tags 中已添加数据: 第九单元\n",
"题号: 031202 , 字段: tags 中已添加数据: 第九单元\n",
"题号: 031203 , 字段: tags 中已添加数据: 第九单元\n"
"题号: 010905 , 字段: remark 中已添加数据: 样本容量太大, 计算器无法计算\n"
]
}
],
@ -34,7 +32,7 @@
" return f\n",
"\n",
"with open(datafile,\"r\",encoding=\"utf8\") as f:\n",
" data = f.read()\n",
" data = f.read().strip()\n",
"pos = data.index(\"\\n\")\n",
"field = data[:pos].strip()\n",
"appending_data = data[pos:]\n",

View File

@ -1,15 +1,5 @@
tags
031201
第九单元
031202
第九单元
031203
第九单元
remark
10905
样本容量太大, 计算器无法计算

View File

@ -7,11 +7,11 @@
"outputs": [],
"source": [
"#修改起始id,出处,文件名\n",
"starting_id = 31201\n",
"origin = \"自拟题目\"\n",
"filename = r\"C:\\Users\\weiye\\Documents\\wwy sync\\临时工作区\\自拟题目8.tex\"\n",
"editor = \"20230110\\t王伟叶\"\n",
"indexed = False\n"
"starting_id = 12760\n",
"origin = \"2023届静安区一模\"\n",
"filename = r\"C:\\Users\\weiye\\Documents\\wwy sync\\临时工作区\\静安一模.tex\"\n",
"editor = \"20230110、3\\t王伟叶\"\n",
"indexed = True\n"
]
},
{

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [
{
@ -100,6 +100,7 @@
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2020届上海春季高考.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2021届上海春季高考.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2022届上海春季高考.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届上海春季高考.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届嘉定区一模.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届奉贤区一模.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届宝山区一模.tex\n",
@ -113,7 +114,10 @@
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届金山区一模.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届长宁区一模.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届闵行区一模.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届青浦区一模.tex\n"
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届青浦区一模.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\\2023届静安区一模.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\正态分布及成对数据新课\\一月新课作业.tex\n",
"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\正态分布及成对数据新课\\正态分布及成对数据测试.tex\n"
]
}
],
@ -124,7 +128,8 @@
"r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\上学期周末卷\",\n",
"r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\第一轮复习讲义\",\n",
"r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\赋能\",\n",
"r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\"\n",
"r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\一模后春考前试卷备选\",\n",
"r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\正态分布及成对数据新课\"\n",
"]\n",
"\"---文件夹列表输入结束---\"\n",
"\n",
@ -175,7 +180,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "mathdept",
"display_name": "Python 3.8.15 ('mathdept')",
"language": "python",
"name": "python3"
},
@ -189,12 +194,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"version": "3.8.15"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
"hash": "42dd566da87765ddbe9b5c5b483063747fec4aacc5469ad554706e4b742e67b2"
}
}
},

View File

@ -15,9 +15,9 @@
"题块 2 处理完毕.\n",
"正在处理题块 3 .\n",
"题块 3 处理完毕.\n",
"开始编译教师版本pdf文件: 临时文件/2023届上海春季高考_教师_20230113.tex\n",
"开始编译教师版本pdf文件: 临时文件/2023届静安区一模_教师_20230113.tex\n",
"0\n",
"开始编译学生版本pdf文件: 临时文件/2023届上海春季高考_学生_20230113.tex\n",
"开始编译学生版本pdf文件: 临时文件/2023届静安区一模_学生_20230113.tex\n",
"0\n"
]
}
@ -41,7 +41,7 @@
"# enumi_mode = 0\n",
"\n",
"#2023届测验卷与周末卷\n",
"exec_list = [(\"标题替换\",\"2023届上海春季高考\")]\n",
"exec_list = [(\"标题替换\",\"2023届静安区一模\")]\n",
"enumi_mode = 1\n",
"\n",
"# 日常选题讲义\n",
@ -51,13 +51,13 @@
"\"\"\"---其他预处理替换命令结束---\"\"\"\n",
"\n",
"\"\"\"---设置目标文件名---\"\"\"\n",
"destination_file = \"临时文件/2023届上海春季高考\"\n",
"destination_file = \"临时文件/2023届静安区一模\"\n",
"\"\"\"---设置目标文件名结束---\"\"\"\n",
"\n",
"\n",
"\"\"\"---设置题号数据---\"\"\"\n",
"problems = [\n",
"\"12739:12750\",\"12751:12754\",\"12755:12759\"\n",
"\"12760:12771\",\"12772:12775\",\"12776:12780\"\n",
"\n",
"\n",
"]\n",
@ -210,7 +210,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "mathdept",
"display_name": "Python 3.9.15 ('pythontest')",
"language": "python",
"name": "python3"
},
@ -229,7 +229,7 @@
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
"hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93"
}
}
},

View File

@ -9,27 +9,73 @@
"name": "stdout",
"output_type": "stream",
"text": [
"012739 填空题\n",
"012740 填空题\n",
"012741 填空题\n",
"012742 填空题\n",
"012743 填空题\n",
"012744 填空题\n",
"012745 填空题\n",
"012746 填空题\n",
"012747 填空题\n",
"012748 填空题\n",
"012749 填空题\n",
"012750 填空题\n",
"012751 选择题\n",
"012752 选择题\n",
"012753 选择题\n",
"012754 选择题\n",
"012755 解答题\n",
"012756 解答题\n",
"012757 解答题\n",
"012758 解答题\n",
"012759 解答题\n"
"012760 填空题\n",
"012761 填空题\n",
"012762 填空题\n",
"012763 填空题\n",
"012764 填空题\n",
"012765 填空题\n",
"012766 填空题\n",
"012767 填空题\n",
"012768 填空题\n",
"012769 填空题\n",
"012770 填空题\n",
"012771 填空题\n",
"012772 选择题\n",
"012773 选择题\n",
"012774 选择题\n",
"012775 选择题\n",
"012776 解答题\n",
"012777 解答题\n",
"012778 解答题\n",
"012779 解答题\n",
"012780 解答题\n",
"031158 填空题\n",
"031159 填空题\n",
"031160 选择题\n",
"031161 解答题\n",
"031162 选择题\n",
"031163 选择题\n",
"031164 选择题\n",
"031165 解答题\n",
"031166 解答题\n",
"031167 解答题\n",
"031168 解答题\n",
"031169 解答题\n",
"031170 解答题\n",
"031171 解答题\n",
"031172 解答题\n",
"031173 解答题\n",
"031174 填空题\n",
"031175 解答题\n",
"031176 解答题\n",
"031177 解答题\n",
"031178 解答题\n",
"031179 解答题\n",
"031180 解答题\n",
"031181 解答题\n",
"031182 解答题\n",
"031183 解答题\n",
"031184 解答题\n",
"031185 解答题\n",
"031186 解答题\n",
"031187 解答题\n",
"031188 解答题\n",
"031189 解答题\n",
"031190 解答题\n",
"031191 填空题\n",
"031192 填空题\n",
"031193 填空题\n",
"031194 填空题\n",
"031195 填空题\n",
"031196 填空题\n",
"031197 解答题\n",
"031198 解答题\n",
"031199 解答题\n",
"031200 解答题\n",
"031201 选择题\n",
"031202 选择题\n",
"031203 选择题\n"
]
}
],

View File

@ -2,16 +2,16 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"开始编译教师版本pdf文件: 临时文件/虚部_教师用_20230111.tex\n",
"开始编译教师版本pdf文件: 临时文件/fn11_教师用_20230113.tex\n",
"0\n",
"开始编译学生版本pdf文件: 临时文件/虚部_学生用_20230111.tex\n",
"开始编译学生版本pdf文件: 临时文件/fn11_学生用_20230113.tex\n",
"0\n"
]
}
@ -26,14 +26,14 @@
"\"\"\"---设置题目列表---\"\"\"\n",
"#留空为编译全题库, a为读取临时文件中的题号筛选.txt文件生成题库\n",
"problems = r\"\"\"\n",
"a\n",
"000436,000437,000438,000439,000440,000441,000442,030497,000444,000445\n",
"\n",
"\"\"\"\n",
"\"\"\"---设置题目列表结束---\"\"\"\n",
"\n",
"\"\"\"---设置文件名---\"\"\"\n",
"#目录和文件的分隔务必用/\n",
"filename = \"临时文件/虚部\"\n",
"filename = \"临时文件/fn11\"\n",
"\"\"\"---设置文件名结束---\"\"\"\n",
"\n",
"\n",
@ -174,7 +174,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "mathdept",
"display_name": "Python 3.8.15 ('mathdept')",
"language": "python",
"name": "python3"
},
@ -188,12 +188,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15 (main, Nov 24 2022, 14:39:17) [MSC v.1916 64 bit (AMD64)]"
"version": "3.8.15"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc"
"hash": "42dd566da87765ddbe9b5c5b483063747fec4aacc5469ad554706e4b742e67b2"
}
}
},

View File

@ -222,6 +222,9 @@
"data = re.sub(\"\\$[ ]+\\}\",\"$}\",data)\n",
"data = re.sub(\"\\{[ ]+\\$\",\"{$\",data)\n",
"\n",
"#替换frac为dfrac\n",
"data = data.replace(\"\\\\frac\",\"\\\\dfrac\")\n",
"\n",
"#替换多余的空行\n",
"for i in range(20):\n",
" data = re.sub(\"\\n[\\t ]*\\n\",\"\\n\",data)\n",

File diff suppressed because it is too large Load Diff