20240226
This commit is contained in:
1 parent
e27c8e6423
commit
ca3c528084
2 files changed
+165
-12
No files matched your search
+33
-5
@@ -610,9 +610,17 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 47,
|
||||
"id": "6f69631c-e2d7-431b-8114-c4bb45e394e7",
|
||||
"metadata": {},
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-01-18T11:50:16.920972Z",
|
||||
"iopub.status.busy": "2024-01-18T11:50:16.920504Z",
|
||||
"iopub.status.idle": "2024-01-18T11:50:17.016239Z",
|
||||
"shell.execute_reply": "2024-01-18T11:50:17.015740Z",
|
||||
"shell.execute_reply.started": "2024-01-18T11:50:16.920935Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import json\n",
|
||||
@@ -621,15 +629,19 @@
|
||||
"filename = 'data/result_杨庙230801.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"\n",
|
||||
"filename = 'data/杨庙社区人员信息2307.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict2 = json.load(fl)\n",
|
||||
"\n",
|
||||
"list1 = []\n",
|
||||
"for k, v in dict1.items():\n",
|
||||
" id = str(k).rjust(5,\"0\")\n",
|
||||
" \n",
|
||||
" name = v['name']\n",
|
||||
" list1.append([id,name])\n",
|
||||
"filename = 'data/杨庙测试2023年8月报告明细表.xlsx'\n",
|
||||
" sex = dict2[k]['sex']\n",
|
||||
" birth = dict2[k]['birth']\n",
|
||||
" list1.append([id,name,sex,birth])\n",
|
||||
"filename = 'data/杨庙测试2023年8月人员明细表.xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"\n",
|
||||
@@ -638,6 +650,22 @@
|
||||
"wb.save(filename)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "d46d6331-dc3a-4ed5-b2cd-995e467f8ac0",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "8d2be337-20e9-47e1-a8fa-6a35350b37bb",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "aa34d7f2-9b6c-42c8-b777-60cc0c48a3a3",
|
||||
|
||||
Reference in new issue
Block a user