This commit is contained in:
512song committed 2023-09-21 17:33:34 +08:00
1 parent 3539f65295
commit 6ace8392ab
2 files changed
+23 -23

No files matched your search

+23 -23
View File
@@ -1600,15 +1600,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 42, "execution_count": 55,
"id": "e26b88fc-c75b-4c1e-82ea-5017370afa9b", "id": "e26b88fc-c75b-4c1e-82ea-5017370afa9b",
"metadata": { "metadata": {
"execution": { "execution": {
"iopub.execute_input": "2023-09-20T10:12:15.164390Z", "iopub.execute_input": "2023-09-21T09:19:24.674831Z",
"iopub.status.busy": "2023-09-20T10:12:15.163888Z", "iopub.status.busy": "2023-09-21T09:19:24.674439Z",
"iopub.status.idle": "2023-09-20T10:12:15.331894Z", "iopub.status.idle": "2023-09-21T09:19:24.751555Z",
"shell.execute_reply": "2023-09-20T10:12:15.331424Z", "shell.execute_reply": "2023-09-21T09:19:24.751037Z",
"shell.execute_reply.started": "2023-09-20T10:12:15.164354Z" "shell.execute_reply.started": "2023-09-21T09:19:24.674800Z"
}, },
"tags": [] "tags": []
}, },
@@ -1617,8 +1617,8 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"891\n", "1217\n",
"891\n" "1217\n"
] ]
} }
], ],
@@ -1641,7 +1641,7 @@
"with open(filename,'r') as fl:\n", "with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n", " dict1 = json.load(fl) \n",
"\n", "\n",
"filename = 'data/places_result_20230920.csv'\n", "filename = 'data/places_result_20230921.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n", "with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n", " fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n", " header = next(fl) \n",
@@ -1680,15 +1680,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 43, "execution_count": 56,
"id": "0a6ea33d-c112-4ed8-9366-3376e55a5731", "id": "0a6ea33d-c112-4ed8-9366-3376e55a5731",
"metadata": { "metadata": {
"execution": { "execution": {
"iopub.execute_input": "2023-09-20T10:15:10.009585Z", "iopub.execute_input": "2023-09-21T09:20:41.327007Z",
"iopub.status.busy": "2023-09-20T10:15:10.009190Z", "iopub.status.busy": "2023-09-21T09:20:41.326557Z",
"iopub.status.idle": "2023-09-20T10:15:10.258788Z", "iopub.status.idle": "2023-09-21T09:20:41.676965Z",
"shell.execute_reply": "2023-09-20T10:15:10.258306Z", "shell.execute_reply": "2023-09-21T09:20:41.676480Z",
"shell.execute_reply.started": "2023-09-20T10:15:10.009553Z" "shell.execute_reply.started": "2023-09-21T09:20:41.326971Z"
}, },
"tags": [] "tags": []
}, },
@@ -1724,7 +1724,7 @@
" else:\n", " else:\n",
" list2.append('') \n", " list2.append('') \n",
" list1.append(list2)\n", " list1.append(list2)\n",
"filename = 'data/天津石化体测情况(截至20230920).xlsx'\n", "filename = 'data/天津石化体测情况(截至20230921).xlsx'\n",
"wb = openpyxl.Workbook()\n", "wb = openpyxl.Workbook()\n",
"sheet = wb.active\n", "sheet = wb.active\n",
"sheet.append(title)\n", "sheet.append(title)\n",
@@ -1744,15 +1744,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 47, "execution_count": 57,
"id": "589a5d44-605d-41a1-a981-7ec7258305ed", "id": "589a5d44-605d-41a1-a981-7ec7258305ed",
"metadata": { "metadata": {
"execution": { "execution": {
"iopub.execute_input": "2023-09-20T10:20:29.348632Z", "iopub.execute_input": "2023-09-21T09:24:45.801889Z",
"iopub.status.busy": "2023-09-20T10:20:29.348164Z", "iopub.status.busy": "2023-09-21T09:24:45.801431Z",
"iopub.status.idle": "2023-09-20T10:20:29.412315Z", "iopub.status.idle": "2023-09-21T09:24:45.832320Z",
"shell.execute_reply": "2023-09-20T10:20:29.411103Z", "shell.execute_reply": "2023-09-21T09:24:45.831781Z",
"shell.execute_reply.started": "2023-09-20T10:20:29.348596Z" "shell.execute_reply.started": "2023-09-21T09:24:45.801852Z"
}, },
"tags": [] "tags": []
}, },
@@ -1789,7 +1789,7 @@
" list2 = [k,v['人数']]\n", " list2 = [k,v['人数']]\n",
" list1.append(list2)\n", " list1.append(list2)\n",
"\n", "\n",
"filename = 'data/天津部门未测试情况(截至20230920).xlsx'\n", "filename = 'data/天津部门未测试情况(截至20230921).xlsx'\n",
"wb = openpyxl.Workbook()\n", "wb = openpyxl.Workbook()\n",
"sheet = wb.active\n", "sheet = wb.active\n",
"sheet.append(title)\n", "sheet.append(title)\n",