From 4ded40dfa1e3f3338d99a4afe710d19630533e77 Mon Sep 17 00:00:00 2001 From: WangWeiye Date: Thu, 9 Mar 2023 14:58:23 +0800 Subject: [PATCH] 20230309 afternoon --- 工具/修改题目数据库.ipynb | 10 +++++----- 工具/寻找阶段末尾空闲题号.ipynb | 6 +++--- 工具/批量添加题库字段数据.ipynb | 4 ++-- 工具/添加关联题目.ipynb | 6 +++--- 工具/添加题目到数据库.ipynb | 2 +- 工具/讲义生成.ipynb | 14 +++++++------- 题库0.3/Problems.json | 32 ++++++++++++++++++++++++++++++-- 7 files changed, 51 insertions(+), 23 deletions(-) diff --git a/工具/修改题目数据库.ipynb b/工具/修改题目数据库.ipynb index 9d9b8196..5e7e3ea1 100644 --- a/工具/修改题目数据库.ipynb +++ b/工具/修改题目数据库.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "metadata": {}, "outputs": [ { @@ -11,7 +11,7 @@ "0" ] }, - "execution_count": 3, + "execution_count": 1, "metadata": {}, "output_type": "execute_result" } @@ -19,7 +19,7 @@ "source": [ "import os,re,json\n", "\"\"\"这里编辑题号(列表)后将在vscode中打开窗口, 编辑后保存关闭, 随后运行第二个代码块\"\"\"\n", - "problems = \"31303\"\n", + "problems = \"40196\"\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": "mathdept", + "display_name": "pythontest", "language": "python", "name": "python3" }, @@ -94,7 +94,7 @@ "orig_nbformat": 4, "vscode": { "interpreter": { - "hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc" + "hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93" } } }, diff --git a/工具/寻找阶段末尾空闲题号.ipynb b/工具/寻找阶段末尾空闲题号.ipynb index 8474a3e9..487c80ee 100644 --- a/工具/寻找阶段末尾空闲题号.ipynb +++ b/工具/寻找阶段末尾空闲题号.ipynb @@ -12,7 +12,7 @@ "首个空闲id: 14628 , 直至 020000\n", "首个空闲id: 22048 , 直至 030000\n", "首个空闲id: 31309 , 直至 040000\n", - "首个空闲id: 40181 , 直至 999999\n" + "首个空闲id: 40202 , 直至 999999\n" ] } ], @@ -46,7 +46,7 @@ ], "metadata": { "kernelspec": { - "display_name": "mathdept", + "display_name": "pythontest", "language": "python", "name": "python3" }, @@ -65,7 +65,7 @@ "orig_nbformat": 4, "vscode": { "interpreter": { - "hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc" + "hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93" } } }, diff --git a/工具/批量添加题库字段数据.ipynb b/工具/批量添加题库字段数据.ipynb index 47eb47d8..77abb31a 100644 --- a/工具/批量添加题库字段数据.ipynb +++ b/工具/批量添加题库字段数据.ipynb @@ -286,7 +286,7 @@ ], "metadata": { "kernelspec": { - "display_name": "mathdept", + "display_name": "pythontest", "language": "python", "name": "python3" }, @@ -305,7 +305,7 @@ "orig_nbformat": 4, "vscode": { "interpreter": { - "hash": "ff3c292c316ba85de6f1ad75f19c731e79d694e741b6f515ec18f14996fe48dc" + "hash": "91219a98e0e9be72efb992f647fe78b593124968b75db0b865552d6787c8db93" } } }, diff --git a/工具/添加关联题目.ipynb b/工具/添加关联题目.ipynb index 3c896e1f..8b2269c1 100644 --- a/工具/添加关联题目.ipynb +++ b/工具/添加关联题目.ipynb @@ -2,15 +2,15 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import os,re,json,time\n", "\n", "\"\"\"---设置原题目id与新题目id列表, 新id的数目不能小于旧id的数目---\"\"\"\n", - "old_ids = \"543\"\n", - "new_ids = \"31243\"\n", + "old_ids = \"3783\"\n", + "new_ids = \"31309\"\n", "\"\"\"---设置完毕---\"\"\"\n", "\"\"\"---完成编辑后记得运行第二个单元格---\"\"\"\n", "\n", diff --git a/工具/添加题目到数据库.ipynb b/工具/添加题目到数据库.ipynb index 530a65c3..c767b3f7 100644 --- a/工具/添加题目到数据库.ipynb +++ b/工具/添加题目到数据库.ipynb @@ -162,7 +162,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.15" + "version": "3.8.15" }, "orig_nbformat": 4, "vscode": { diff --git a/工具/讲义生成.ipynb b/工具/讲义生成.ipynb index 1ec92bdb..c40d8c71 100644 --- a/工具/讲义生成.ipynb +++ b/工具/讲义生成.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "metadata": {}, "outputs": [ { @@ -11,10 +11,10 @@ "text": [ "正在处理题块 1 .\n", "题块 1 处理完毕.\n", - "开始编译教师版本pdf文件: 临时文件/2023劳模讲师团高三复习讲座_第一单元_预备知识_教师_20230228.tex\n", - "1\n", - "开始编译学生版本pdf文件: 临时文件/2023劳模讲师团高三复习讲座_第一单元_预备知识_学生_20230228.tex\n", - "1\n" + "开始编译教师版本pdf文件: 临时文件/第二讲_教师_20230309.tex\n", + "0\n", + "开始编译学生版本pdf文件: 临时文件/第二讲_学生_20230309.tex\n", + "0\n" ] } ], @@ -31,7 +31,7 @@ "\"\"\"---设置题块编号---\"\"\"\n", "\n", "problems = [\n", - "\"3675,11674,3665,11661,3622,9997,3637,11725,12436,11610,11662,11599,30437,20309\"\n", + "\"003709,013438,013354,003726,013368,013502,013505,003778,003783,013356,013314,003892,013418,013388,003757,003953,013375,013481,013495\"\n", "]\n", "\n", "\"\"\"---设置结束---\"\"\"\n", @@ -50,7 +50,7 @@ "elif paper_type == 3:\n", " enumi_mode = 0 #设置模式(1为整卷统一编号, 0为每一部分从1开始编号)\n", " template_file = \"模板文件/日常选题讲义模板.txt\" #设置模板文件名\n", - " exec_list = [(\"标题文字待处理\",\"2023劳模讲师团高三复习讲座_第一单元_预备知识\")] #设置讲义标题\n", + " exec_list = [(\"标题文字待处理\",\"第二讲\")] #设置讲义标题\n", " destination_file = \"临时文件/\"+exec_list[0][1] # 设置输出文件名\n", " \n", "\n", diff --git a/题库0.3/Problems.json b/题库0.3/Problems.json index d1ef3adf..324da9cc 100644 --- a/题库0.3/Problems.json +++ b/题库0.3/Problems.json @@ -102053,7 +102053,9 @@ "20220701\t王伟叶" ], "same": [], - "related": [], + "related": [ + "031309" + ], "remark": "", "space": "" }, @@ -436773,6 +436775,32 @@ "remark": "", "space": "12ex" }, + "031309": { + "id": "031309", + "content": "已知$f(x)$是$\\mathbf{R}$上的奇函数, $g(x)$是$\\mathbf{R}$上的偶函数, 若函数$f(x)+g(x)$的值域为$[1,3)$, 则$f(x)-g(x)$的值域为\\blank{50}.", + "objs": [ + "K0215001B" + ], + "tags": [ + "第二单元" + ], + "genre": "填空题", + "ans": "", + "solution": "", + "duration": -1, + "usages": [], + "origin": "2016年双基百分百-20230309修改", + "edit": [ + "20220701\t王伟叶", + "20230309\t余利成" + ], + "same": [], + "related": [ + "003783" + ], + "remark": "", + "space": "" + }, "040001": { "id": "040001", "content": "参数方程$\\begin{cases}x=3 t^2+4, \\\\ y=t^2-2\\end{cases}$($0 \\leq t \\leq 3$)所表示的曲线是\\bracket{20}.\n\\fourch{一支双曲线}{线段}{圆弧}{射线}", @@ -440608,7 +440636,7 @@ }, "040196": { "id": "040196", - "content": "若$f(x)=2^{\\sin x}, g(x)=2^{\\cos x}, x \\in R$, 则积函数$f(x) \\cdot g(x)$必有\\bracket{20}.\n\\fourch{最大值$4$}{最小值$4$}{最大值$2^{\\sqrt{2}}$}{最小值$2^{\\sqrt{2}}$}", + "content": "若$f(x)=2^{\\sin x}, g(x)=2^{\\cos x}, x \\in \\mathbf{R}$, 则积函数$f(x) \\cdot g(x)$必有\\bracket{20}.\n\\fourch{最大值$4$}{最小值$4$}{最大值$2^{\\sqrt{2}}$}{最小值$2^{\\sqrt{2}}$}", "objs": [], "tags": [], "genre": "",