20241205
This commit is contained in:
1 parent
f763498a42
commit
9c40a2b9f7
3 files changed
+678
-435
No files matched your search
+66
-18
@@ -2356,6 +2356,54 @@
|
||||
"print('ok')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "4451ac02-b5c4-4e6c-88cf-9dd6f2067763",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 汇总2023、2024人员"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "a6dc8ae7-5a51-4eb1-954e-19c17b6062cd",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-12-05T01:26:00.236419Z",
|
||||
"iopub.status.busy": "2024-12-05T01:26:00.235845Z",
|
||||
"iopub.status.idle": "2024-12-05T01:26:00.282366Z",
|
||||
"shell.execute_reply": "2024-12-05T01:26:00.281825Z",
|
||||
"shell.execute_reply.started": "2024-12-05T01:26:00.236362Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"ok\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import json\n",
|
||||
"\n",
|
||||
"filename = 'data/长炼医院人员2024.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"filename = 'data/长炼医院人员名单.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict2 = json.load(fl) \n",
|
||||
"\n",
|
||||
"for k, v in dict2.items():\n",
|
||||
" dict1[k] = v\n",
|
||||
"filename = 'data/长炼医院人员2024(汇总).json'\n",
|
||||
"with open(filename, 'w') as fl:\n",
|
||||
" json.dump(dict1, fl, ensure_ascii=False)\n",
|
||||
"print('ok')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b056832e-049c-40f4-b7e7-adac6976bf77",
|
||||
@@ -2366,15 +2414,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": 4,
|
||||
"id": "1e2d586e-6ff5-4fd1-a909-278d23e54561",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-09-29T05:14:10.446230Z",
|
||||
"iopub.status.busy": "2024-09-29T05:14:10.445350Z",
|
||||
"iopub.status.idle": "2024-09-29T05:14:10.477950Z",
|
||||
"shell.execute_reply": "2024-09-29T05:14:10.477374Z",
|
||||
"shell.execute_reply.started": "2024-09-29T05:14:10.446151Z"
|
||||
"iopub.execute_input": "2024-12-05T01:38:43.355077Z",
|
||||
"iopub.status.busy": "2024-12-05T01:38:43.354336Z",
|
||||
"iopub.status.idle": "2024-12-05T01:38:43.429440Z",
|
||||
"shell.execute_reply": "2024-12-05T01:38:43.428824Z",
|
||||
"shell.execute_reply.started": "2024-12-05T01:38:43.355007Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -2382,8 +2430,8 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"212\n",
|
||||
"212\n"
|
||||
"377\n",
|
||||
"377\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -2392,7 +2440,7 @@
|
||||
"import time\n",
|
||||
"import csv\n",
|
||||
"\n",
|
||||
"filename = '../item.json'\n",
|
||||
"filename = '../item1.json'\n",
|
||||
"item = {}\n",
|
||||
"unit = {}\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
@@ -2402,7 +2450,7 @@
|
||||
"re_ta = {}\n",
|
||||
"dict1 = {}\n",
|
||||
"list1 = []\n",
|
||||
"filename = 'data/长炼医院人员2024.json'\n",
|
||||
"filename = 'data/长炼医院人员2024(汇总).json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"\n",
|
||||
@@ -2444,15 +2492,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 5,
|
||||
"id": "64c6e1e3-801c-4573-b78f-5a9e842597a9",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-09-29T05:14:43.182012Z",
|
||||
"iopub.status.busy": "2024-09-29T05:14:43.181450Z",
|
||||
"iopub.status.idle": "2024-09-29T05:14:43.242249Z",
|
||||
"shell.execute_reply": "2024-09-29T05:14:43.241683Z",
|
||||
"shell.execute_reply.started": "2024-09-29T05:14:43.181959Z"
|
||||
"iopub.execute_input": "2024-12-05T01:39:11.222107Z",
|
||||
"iopub.status.busy": "2024-12-05T01:39:11.221349Z",
|
||||
"iopub.status.idle": "2024-12-05T01:39:11.314666Z",
|
||||
"shell.execute_reply": "2024-12-05T01:39:11.314133Z",
|
||||
"shell.execute_reply.started": "2024-12-05T01:39:11.222034Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
@@ -2467,7 +2515,7 @@
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"\n",
|
||||
"filename = 'data/长炼医院人员2024.json'\n",
|
||||
"filename = 'data/长炼医院人员2024(汇总).json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict2 = json.load(fl)\n",
|
||||
" \n",
|
||||
@@ -2487,7 +2535,7 @@
|
||||
" else:\n",
|
||||
" list2.append('') \n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/长炼医院人员检测情况表(20240720).xlsx'\n",
|
||||
"filename = 'data/长炼医院人员检测情况表(20240930).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
|
||||
Reference in new issue
Block a user