This commit is contained in:
512song committed 2025-11-26 15:29:09 +08:00
1 parent aff0303bc9
commit d41474d9f1
6 files changed
+662 -1607

No files matched your search

+104 -3
View File
@@ -150,6 +150,88 @@
"print(len(list1),'ok')"
]
},
{
"cell_type": "code",
"execution_count": 43,
"id": "d76d7645-c337-4257-8be7-4b6664ce8428",
"metadata": {
"execution": {
"iopub.execute_input": "2025-11-24T14:42:06.097431Z",
"iopub.status.busy": "2025-11-24T14:42:06.096911Z",
"iopub.status.idle": "2025-11-24T14:42:06.102150Z",
"shell.execute_reply": "2025-11-24T14:42:06.101126Z",
"shell.execute_reply.started": "2025-11-24T14:42:06.097383Z"
}
},
"outputs": [],
"source": [
"## 修正部门信息"
]
},
{
"cell_type": "code",
"execution_count": 45,
"id": "2033b245-1892-4668-a6e6-fe4e6ce3a659",
"metadata": {
"execution": {
"iopub.execute_input": "2025-11-24T14:42:40.124175Z",
"iopub.status.busy": "2025-11-24T14:42:40.123533Z",
"iopub.status.idle": "2025-11-24T14:42:40.189066Z",
"shell.execute_reply": "2025-11-24T14:42:40.188604Z",
"shell.execute_reply.started": "2025-11-24T14:42:40.124115Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1225 ok\n"
]
}
],
"source": [
"import json\n",
"\n",
"filename = 'data/result_沧州炼化-1.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"list1 = []\n",
"for k, v in dict1.items():\n",
" if v['unit'] =='行政事物中心':\n",
" v['unit'] = '行政事务中心'\n",
"filename = 'data/result_沧州炼化-1.json'\n",
"with open(filename, 'w') as fl:\n",
" json.dump(dict1, fl, ensure_ascii=False)\n",
"print(len(dict1),'ok')"
]
},
{
"cell_type": "code",
"execution_count": 46,
"id": "6c01cc41-71d9-433d-910f-462345d9c5b8",
"metadata": {
"execution": {
"iopub.execute_input": "2025-11-24T14:42:44.057583Z",
"iopub.status.busy": "2025-11-24T14:42:44.056985Z",
"iopub.status.idle": "2025-11-24T14:42:44.075338Z",
"shell.execute_reply": "2025-11-24T14:42:44.074893Z",
"shell.execute_reply.started": "2025-11-24T14:42:44.057530Z"
}
},
"outputs": [],
"source": [
"import json\n",
"\n",
"filename = 'data/result_沧州炼化-1.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"list1 = []\n",
"for k, v in dict1.items():\n",
" if v['unit'] =='行政事物中心':\n",
" print(v['name'])"
]
},
{
"cell_type": "markdown",
"id": "f9ef800a-b760-4933-b7a4-c69edef593d0",
@@ -340,10 +422,29 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 33,
"id": "c2ca861f-54ca-4312-bf24-20dbc2f3f2e6",
"metadata": {},
"outputs": [],
"metadata": {
"execution": {
"iopub.execute_input": "2025-11-24T06:36:37.829125Z",
"iopub.status.busy": "2025-11-24T06:36:37.828609Z",
"iopub.status.idle": "2025-11-24T06:36:37.858470Z",
"shell.execute_reply": "2025-11-24T06:36:37.857858Z",
"shell.execute_reply.started": "2025-11-24T06:36:37.829078Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1553238 齐金永 公用工程部 13231725301 2\n",
"1552999 赵崇胜 储运部 13722775060 2\n",
"1553836 王成柱 炼油一部 13111760190 1\n",
"1553839 徐振柱 炼油一部 17772650508 1\n"
]
}
],
"source": [
"import json\n",
"\n",