20240822
This commit is contained in:
1 parent
28b26205f2
commit
a029e8b3a6
2 files changed
+99
-17
No files matched your search
+37
-6
@@ -10,12 +10,27 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 2,
|
||||
"id": "bbba6efc-73cd-4db6-bae7-014724fee731",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-08-14T12:48:54.906761Z",
|
||||
"iopub.status.busy": "2025-08-14T12:48:54.906261Z",
|
||||
"iopub.status.idle": "2025-08-14T12:48:55.181497Z",
|
||||
"shell.execute_reply": "2025-08-14T12:48:55.180926Z",
|
||||
"shell.execute_reply.started": "2025-08-14T12:48:54.906723Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"1698 ok\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import openpyxl\n",
|
||||
"import json\n",
|
||||
@@ -42,7 +57,7 @@
|
||||
" \n",
|
||||
" dict1['birth'] = str(sheet.cell(n, 5).value).replace('/','-').split(' ')[0] \n",
|
||||
" person[code] = dict1\n",
|
||||
"filename = 'data/宁夏能化人员.json'\n",
|
||||
"filename = 'data/宁夏能化人员-1.json'\n",
|
||||
"with open(filename, 'w') as fl:\n",
|
||||
" json.dump(person, fl, ensure_ascii=False)\n",
|
||||
"print(len(person),'ok')"
|
||||
@@ -493,10 +508,26 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 1,
|
||||
"id": "d31020be-c9c0-404f-8e0b-f8f507385f48",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-08-14T12:28:32.225197Z",
|
||||
"iopub.status.busy": "2025-08-14T12:28:32.224475Z",
|
||||
"iopub.status.idle": "2025-08-14T12:28:32.933373Z",
|
||||
"shell.execute_reply": "2025-08-14T12:28:32.932821Z",
|
||||
"shell.execute_reply.started": "2025-08-14T12:28:32.225127Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"ok\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import json\n",
|
||||
"import openpyxl\n",
|
||||
|
||||
Reference in new issue
Block a user