20221011 night
This commit is contained in:
parent
f0d27701d3
commit
858564adf1
|
|
@ -2,7 +2,7 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
"0"
|
||||
]
|
||||
},
|
||||
"execution_count": 13,
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
|
|
@ -21,8 +21,7 @@
|
|||
"\n",
|
||||
"\"\"\"---设置关键字, 同一field下不同选项为or关系, 同一字典中不同字段间为and关系, 不同字典间为or关系, _not表示列表中的关键字都不含, 同一字典中的数字用来供应同一字段不同的条件之间的and---\"\"\"\n",
|
||||
"keywords_dict_table = [\n",
|
||||
" {\"content\":[\"柱\",\"锥\",\"球\",\"台\"], \"content_not\":[\"体积\",\"表面积\",\"侧面积\"], \"tags\":[\"第六单元\",\"\"]},\n",
|
||||
" {\"objs\":[\"K0615\",\"K0618\",\"K0621\",\"K0622\"]}\n",
|
||||
" {\"tags\":[\"一\",\"二\",\"三\",\"五\"], \"usages\":[\"班\"]}\n",
|
||||
"]\n",
|
||||
"\"\"\"---关键字设置完毕---\"\"\"\n",
|
||||
"# 示例: keywords_dict_table = [\n",
|
||||
|
|
@ -171,7 +170,7 @@
|
|||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3.9.7 ('base')",
|
||||
"display_name": "Python 3.8.8 ('base')",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
|
@ -185,12 +184,12 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.9.7"
|
||||
"version": "3.8.8"
|
||||
},
|
||||
"orig_nbformat": 4,
|
||||
"vscode": {
|
||||
"interpreter": {
|
||||
"hash": "e4cce46d6be9934fbd27f9ca0432556941ea5bdf741d4f4d64c6cd7f8dfa8fba"
|
||||
"hash": "d311ffef239beb3b8f3764271728f3972d7b090c974f8e972fcdeedf230299ac"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"首个空闲id: 11988 , 直至 020000\n",
|
||||
"首个空闲id: 20227 , 直至 030000\n",
|
||||
"首个空闲id: 30152 , 直至 999999\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import os,re,json\n",
|
||||
"with open(r\"..\\题库0.3\\Problems.json\",\"r\",encoding = \"utf8\") as f:\n",
|
||||
" database = f.read()\n",
|
||||
"idlist = list(json.loads(database).keys())\n",
|
||||
"freeidlist = {}\n",
|
||||
"for id in idlist:\n",
|
||||
" if not str(int(id)+1).zfill(6) in idlist:\n",
|
||||
" freeidlist[id] = \"\"\n",
|
||||
"for id in freeidlist:\n",
|
||||
" largeridlist = [usedid for usedid in idlist if usedid > id]\n",
|
||||
" if not largeridlist == []:\n",
|
||||
" freeidlist[id] = str(int(min(largeridlist))-1).zfill(6)\n",
|
||||
" else:\n",
|
||||
" freeidlist[id] = \"999999\"\n",
|
||||
"for id in freeidlist:\n",
|
||||
" print(\"首个空闲id:\",str(int(id)+1),\", 直至\",freeidlist[id])\n",
|
||||
" \n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3.8.8 ('base')",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.8"
|
||||
},
|
||||
"orig_nbformat": 4,
|
||||
"vscode": {
|
||||
"interpreter": {
|
||||
"hash": "d311ffef239beb3b8f3764271728f3972d7b090c974f8e972fcdeedf230299ac"
|
||||
}
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
|
|
@ -2,15 +2,15 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"首行题目数量: 1228\n",
|
||||
"剩余题目数量: 1105\n"
|
||||
"首行题目数量: 1760\n",
|
||||
"剩余题目数量: 1140\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
@ -23,9 +23,10 @@
|
|||
"\n",
|
||||
"\"\"\"---设置要排除的题号所在的绝对路径---\"\"\"\n",
|
||||
"used_path_list = [\n",
|
||||
"r\"C:\\Users\\Wang Weiye\\Documents\\wwy sync\\23届\\第一轮复习讲义/\",\n",
|
||||
"r\"C:\\Users\\Wang Weiye\\Documents\\wwy sync\\23届\\上学期测验卷/\",\n",
|
||||
"r\"C:\\Users\\Wang 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",
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import os,re,json,time\n",
|
||||
"\n",
|
||||
"\"\"\"---设置原题目id与新题目id---\"\"\"\n",
|
||||
"old_id = \"9697\"\n",
|
||||
"new_id = \"30151\"\n",
|
||||
"old_id = \"2092\"\n",
|
||||
"new_id = \"30152\"\n",
|
||||
"\"\"\"---设置完毕---\"\"\"\n",
|
||||
"\n",
|
||||
"old_id = old_id.zfill(6)\n",
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3.9.7 ('base')",
|
||||
"display_name": "Python 3.8.8 ('base')",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
|
@ -64,12 +64,12 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.9.7"
|
||||
"version": "3.8.8"
|
||||
},
|
||||
"orig_nbformat": 4,
|
||||
"vscode": {
|
||||
"interpreter": {
|
||||
"hash": "e4cce46d6be9934fbd27f9ca0432556941ea5bdf741d4f4d64c6cd7f8dfa8fba"
|
||||
"hash": "d311ffef239beb3b8f3764271728f3972d7b090c974f8e972fcdeedf230299ac"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -53733,7 +53733,9 @@
|
|||
"20220625\t王伟叶"
|
||||
],
|
||||
"same": [],
|
||||
"related": [],
|
||||
"related": [
|
||||
"030152"
|
||||
],
|
||||
"remark": "",
|
||||
"space": "12ex"
|
||||
},
|
||||
|
|
@ -289349,5 +289351,29 @@
|
|||
],
|
||||
"remark": "",
|
||||
"space": "12ex"
|
||||
},
|
||||
"030152": {
|
||||
"id": "030152",
|
||||
"content": "在复数范围内, 方程$2x^2-\\mathrm{i} x+1=0$的解为\\blank{50}.",
|
||||
"objs": [],
|
||||
"tags": [
|
||||
"第五单元"
|
||||
],
|
||||
"genre": "填空题",
|
||||
"ans": "",
|
||||
"solution": "",
|
||||
"duration": -1,
|
||||
"usages": [],
|
||||
"origin": "2016届创新班作业\t3140-复系数一元二次方程-20221011修改",
|
||||
"edit": [
|
||||
"20220625\t王伟叶",
|
||||
"20221011\t王伟叶"
|
||||
],
|
||||
"same": [],
|
||||
"related": [
|
||||
"002092"
|
||||
],
|
||||
"remark": "",
|
||||
"space": ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue