20221010 evening

This commit is contained in:
Wang Weiye 2022-10-10 19:22:47 +08:00
parent cb24bd2338
commit fe2b8f1958
3 changed files with 94 additions and 9 deletions

View File

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 13,
"metadata": {},
"outputs": [
{
@ -11,7 +11,7 @@
"0"
]
},
"execution_count": 3,
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
@ -21,7 +21,7 @@
"\n",
"\"\"\"---设置关键字, 同一field下不同选项为or关系, 同一字典中不同字段间为and关系, 不同字典间为or关系, _not表示列表中的关键字都不含, 同一字典中的数字用来供应同一字段不同的条件之间的and---\"\"\"\n",
"keywords_dict_table = [\n",
" {\"content\":[\"棱柱\",\"圆柱\",\"棱锥\",\"圆锥\",\"棱台\",\"圆台\",\"球\",\"多面体\",\"旋转体\"], \"content_not\":[\"体积\",\"表面积\",\"侧面积\"], \"tags\":[\"第五单元\"]},\n",
" {\"content\":[\"柱\",\"锥\",\"球\",\"台\"], \"content_not\":[\"体积\",\"表面积\",\"侧面积\"], \"tags\":[\"第六单元\",\"\"]},\n",
" {\"objs\":[\"K0615\",\"K0618\",\"K0621\",\"K0622\"]}\n",
"]\n",
"\"\"\"---关键字设置完毕---\"\"\"\n",
@ -76,6 +76,91 @@
"os.system(\"code \"+filename)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"condition1 = {\"content\":[\"柱\",\"锥\",\"球\",\"台\"], \"content_not\":[\"体积\",\"表面积\",\"侧面积\"], \"tags\":[\"第六单元\",\"\"]}"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'content': ['柱', '锥', '球', '台'],\n",
" 'content_not': ['体积', '表面积', '侧面积'],\n",
" 'tags': ['第六单元']}"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"condition1"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"match_condition(pro_dict[\"030140\"],condition1)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'id': '030140',\n",
" 'content': '如果平行于一个正棱锥底面的截面面积是底面面积的$\\\\dfrac 12$, 那么截面截一条侧棱所得两条线段的比是\\\\blank{50}.',\n",
" 'objs': [],\n",
" 'tags': [],\n",
" 'genre': '',\n",
" 'ans': '',\n",
" 'solution': '',\n",
" 'duration': -1,\n",
" 'usages': [],\n",
" 'origin': '人教B版教材例题与习题',\n",
" 'edit': ['20221010\\t王伟叶'],\n",
" 'same': [],\n",
" 'related': [],\n",
" 'remark': '',\n",
" 'space': ''}"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pro_dict[\"030140\"]"
]
},
{
"cell_type": "code",
"execution_count": null,

View File

@ -2,16 +2,16 @@
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"开始编译教师版本pdf文件: 临时文件/多面体选题_教师用_20221010.tex\n",
"开始编译教师版本pdf文件: 临时文件/多面体与旋转体选题_教师用_20221010.tex\n",
"0\n",
"开始编译学生版本pdf文件: 临时文件/多面体选题_学生用_20221010.tex\n",
"开始编译学生版本pdf文件: 临时文件/多面体与旋转体选题_学生用_20221010.tex\n",
"0\n"
]
}
@ -33,7 +33,7 @@
"\n",
"\"\"\"---设置文件名---\"\"\"\n",
"#目录和文件的分隔务必用/\n",
"filename = \"临时文件/多面体选题\"\n",
"filename = \"临时文件/多面体与旋转体选题\"\n",
"\"\"\"---设置文件名结束---\"\"\"\n",
"\n",
"\n",

View File

@ -288680,7 +288680,7 @@
},
"030120": {
"id": "030120",
"content": "判断下列命题是否正确, 正确的在横线上画``$\\checkmark$'', 错误的画``$\\times$''.\\\\\n\\blank{30}(1) 侧棱垂直于底面的棱柱一定是直棱柱;\\\\\n\\blank{30}(2) 底面是正多边形的棱柱一定是正棱柱;\\\\\n\\blank{30}(3) 棱柱的侧面都是平行四边形;\\\\\n\\blank{30}(4) 斜的侧面都不可能是矩形.",
"content": "判断下列命题是否正确, 正确的在横线上画``$\\checkmark$'', 错误的画``$\\times$''.\\\\\n\\blank{30}(1) 侧棱垂直于底面的棱柱一定是直棱柱;\\\\\n\\blank{30}(2) 底面是正多边形的棱柱一定是正棱柱;\\\\\n\\blank{30}(3) 棱柱的侧面都是平行四边形;\\\\\n\\blank{30}(4) 斜的侧面都不可能是矩形.",
"objs": [],
"tags": [],
"genre": "",
@ -288946,7 +288946,7 @@
},
"030134": {
"id": "030134",
"content": "四棱台中, 与一条侧棱面的棱有\\blank{50}条.",
"content": "四棱台中, 与一条侧棱面的棱有\\blank{50}条.",
"objs": [],
"tags": [],
"genre": "",