20250606
This commit is contained in:
1 parent
c2b6f9b675
commit
9ccc2271eb
3 files changed
+576
-119
No files matched your search
+14
-14
@@ -1295,15 +1295,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 8,
|
||||
"id": "3e6da1e5-4b4e-448a-9663-815372da636b",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-05-30T06:30:09.042788Z",
|
||||
"iopub.status.busy": "2025-05-30T06:30:09.041974Z",
|
||||
"iopub.status.idle": "2025-05-30T06:30:09.102061Z",
|
||||
"shell.execute_reply": "2025-05-30T06:30:09.101519Z",
|
||||
"shell.execute_reply.started": "2025-05-30T06:30:09.042708Z"
|
||||
"iopub.execute_input": "2025-06-01T02:24:52.000744Z",
|
||||
"iopub.status.busy": "2025-06-01T02:24:52.000187Z",
|
||||
"iopub.status.idle": "2025-06-01T02:24:52.059953Z",
|
||||
"shell.execute_reply": "2025-06-01T02:24:52.059389Z",
|
||||
"shell.execute_reply.started": "2025-06-01T02:24:52.000689Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -1320,7 +1320,7 @@
|
||||
"import json\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"wb = openpyxl.load_workbook('data/石油工程设计有限公司人员2025.xlsx')\n",
|
||||
"wb = openpyxl.load_workbook('data/石油工程设计有限公司人员2025.xlsx',data_only=True)\n",
|
||||
"sheet = wb.active\n",
|
||||
"# sheets = wb.sheetnames\n",
|
||||
"person = {}\n",
|
||||
@@ -1352,15 +1352,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": 7,
|
||||
"id": "93610ae6-098d-434a-a19a-6071aaa65500",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-05-30T06:32:05.818838Z",
|
||||
"iopub.status.busy": "2025-05-30T06:32:05.818215Z",
|
||||
"iopub.status.idle": "2025-05-30T06:32:05.831425Z",
|
||||
"shell.execute_reply": "2025-05-30T06:32:05.830336Z",
|
||||
"shell.execute_reply.started": "2025-05-30T06:32:05.818778Z"
|
||||
"iopub.execute_input": "2025-06-01T02:19:35.342854Z",
|
||||
"iopub.status.busy": "2025-06-01T02:19:35.342124Z",
|
||||
"iopub.status.idle": "2025-06-01T02:19:35.355636Z",
|
||||
"shell.execute_reply": "2025-06-01T02:19:35.354344Z",
|
||||
"shell.execute_reply.started": "2025-06-01T02:19:35.342790Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -1389,7 +1389,7 @@
|
||||
"json_data = json.dumps(list1,ensure_ascii=False, indent=4) \n",
|
||||
"\n",
|
||||
"# 将 json 数据写入文件\n",
|
||||
"with open(\"data/data_东营石油工程设计院2025.json\", \"w\",encoding = 'utf-8') as file:\n",
|
||||
"with open(\"data/card_东营石油工程设计院2025.json\", \"w\",encoding = 'utf-8') as file:\n",
|
||||
" file.write(json_data) \n",
|
||||
"print('ok')"
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user