20221011 night
This commit is contained in:
parent
f0d27701d3
commit
858564adf1
|
|
@ -2,7 +2,7 @@
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 13,
|
"execution_count": 3,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
"0"
|
"0"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 13,
|
"execution_count": 3,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
|
@ -21,8 +21,7 @@
|
||||||
"\n",
|
"\n",
|
||||||
"\"\"\"---设置关键字, 同一field下不同选项为or关系, 同一字典中不同字段间为and关系, 不同字典间为or关系, _not表示列表中的关键字都不含, 同一字典中的数字用来供应同一字段不同的条件之间的and---\"\"\"\n",
|
"\"\"\"---设置关键字, 同一field下不同选项为or关系, 同一字典中不同字段间为and关系, 不同字典间为or关系, _not表示列表中的关键字都不含, 同一字典中的数字用来供应同一字段不同的条件之间的and---\"\"\"\n",
|
||||||
"keywords_dict_table = [\n",
|
"keywords_dict_table = [\n",
|
||||||
" {\"content\":[\"柱\",\"锥\",\"球\",\"台\"], \"content_not\":[\"体积\",\"表面积\",\"侧面积\"], \"tags\":[\"第六单元\",\"\"]},\n",
|
" {\"tags\":[\"一\",\"二\",\"三\",\"五\"], \"usages\":[\"班\"]}\n",
|
||||||
" {\"objs\":[\"K0615\",\"K0618\",\"K0621\",\"K0622\"]}\n",
|
|
||||||
"]\n",
|
"]\n",
|
||||||
"\"\"\"---关键字设置完毕---\"\"\"\n",
|
"\"\"\"---关键字设置完毕---\"\"\"\n",
|
||||||
"# 示例: keywords_dict_table = [\n",
|
"# 示例: keywords_dict_table = [\n",
|
||||||
|
|
@ -171,7 +170,7 @@
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3.9.7 ('base')",
|
"display_name": "Python 3.8.8 ('base')",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
|
|
@ -185,12 +184,12 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.9.7"
|
"version": "3.8.8"
|
||||||
},
|
},
|
||||||
"orig_nbformat": 4,
|
"orig_nbformat": 4,
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"interpreter": {
|
"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": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": 2,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"首行题目数量: 1228\n",
|
"首行题目数量: 1760\n",
|
||||||
"剩余题目数量: 1105\n"
|
"剩余题目数量: 1140\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -23,9 +23,10 @@
|
||||||
"\n",
|
"\n",
|
||||||
"\"\"\"---设置要排除的题号所在的绝对路径---\"\"\"\n",
|
"\"\"\"---设置要排除的题号所在的绝对路径---\"\"\"\n",
|
||||||
"used_path_list = [\n",
|
"used_path_list = [\n",
|
||||||
"r\"C:\\Users\\Wang Weiye\\Documents\\wwy sync\\23届\\第一轮复习讲义/\",\n",
|
"r\"C:\\Users\\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\\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",
|
||||||
"]\n",
|
"]\n",
|
||||||
"\"\"\"---路径设置完毕---\"\"\"\n",
|
"\"\"\"---路径设置完毕---\"\"\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,15 @@
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 8,
|
"execution_count": 2,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"import os,re,json,time\n",
|
"import os,re,json,time\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\"\"\"---设置原题目id与新题目id---\"\"\"\n",
|
"\"\"\"---设置原题目id与新题目id---\"\"\"\n",
|
||||||
"old_id = \"9697\"\n",
|
"old_id = \"2092\"\n",
|
||||||
"new_id = \"30151\"\n",
|
"new_id = \"30152\"\n",
|
||||||
"\"\"\"---设置完毕---\"\"\"\n",
|
"\"\"\"---设置完毕---\"\"\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"old_id = old_id.zfill(6)\n",
|
"old_id = old_id.zfill(6)\n",
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3.9.7 ('base')",
|
"display_name": "Python 3.8.8 ('base')",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
|
|
@ -64,12 +64,12 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.9.7"
|
"version": "3.8.8"
|
||||||
},
|
},
|
||||||
"orig_nbformat": 4,
|
"orig_nbformat": 4,
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"interpreter": {
|
"interpreter": {
|
||||||
"hash": "e4cce46d6be9934fbd27f9ca0432556941ea5bdf741d4f4d64c6cd7f8dfa8fba"
|
"hash": "d311ffef239beb3b8f3764271728f3972d7b090c974f8e972fcdeedf230299ac"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -53733,7 +53733,9 @@
|
||||||
"20220625\t王伟叶"
|
"20220625\t王伟叶"
|
||||||
],
|
],
|
||||||
"same": [],
|
"same": [],
|
||||||
"related": [],
|
"related": [
|
||||||
|
"030152"
|
||||||
|
],
|
||||||
"remark": "",
|
"remark": "",
|
||||||
"space": "12ex"
|
"space": "12ex"
|
||||||
},
|
},
|
||||||
|
|
@ -289349,5 +289351,29 @@
|
||||||
],
|
],
|
||||||
"remark": "",
|
"remark": "",
|
||||||
"space": "12ex"
|
"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