This commit is contained in:
512song committed 2023-11-08 01:56:06 +00:00
1 parent 591541fa4b
commit a81febd966
1 file changed
+17 -17
+17 -17
View File
@@ -650,7 +650,6 @@
"cell_type": "markdown", "cell_type": "markdown",
"id": "1ab2aa22-5cc2-4f53-a28d-b30b1ecab15f", "id": "1ab2aa22-5cc2-4f53-a28d-b30b1ecab15f",
"metadata": { "metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": [] "tags": []
}, },
"source": [ "source": [
@@ -1107,15 +1106,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 104,
"id": "0bafbf66-c909-413e-a9c1-c1a5f9c22953", "id": "0bafbf66-c909-413e-a9c1-c1a5f9c22953",
"metadata": { "metadata": {
"execution": { "execution": {
"iopub.execute_input": "2023-11-06T02:45:26.997902Z", "iopub.execute_input": "2023-11-08T01:55:15.141433Z",
"iopub.status.busy": "2023-11-06T02:45:26.997635Z", "iopub.status.busy": "2023-11-08T01:55:15.141150Z",
"iopub.status.idle": "2023-11-06T02:45:27.153980Z", "iopub.status.idle": "2023-11-08T01:55:15.238893Z",
"shell.execute_reply": "2023-11-06T02:45:27.153516Z", "shell.execute_reply": "2023-11-08T01:55:15.238339Z",
"shell.execute_reply.started": "2023-11-06T02:45:26.997879Z" "shell.execute_reply.started": "2023-11-08T01:55:15.141408Z"
}, },
"tags": [] "tags": []
}, },
@@ -1146,7 +1145,8 @@
" dict1['sex'] = sheet.cell(n, 3).value\n", " dict1['sex'] = sheet.cell(n, 3).value\n",
" dict1['unit'] = sheet.cell(n, 4).value\n", " dict1['unit'] = sheet.cell(n, 4).value\n",
" dict1['birth'] = sheet.cell(n,5).value\n", " dict1['birth'] = sheet.cell(n,5).value\n",
" dict1['phone'] = sheet.cell(n,6).value\n", " if sheet.cell(n,6).value is not None:\n",
" dict1['phone'] = sheet.cell(n,6).value \n",
" person[code] = dict1\n", " person[code] = dict1\n",
"filename = 'data/北海炼化2023年.json'\n", "filename = 'data/北海炼化2023年.json'\n",
"with open(filename, 'w') as fl:\n", "with open(filename, 'w') as fl:\n",
@@ -1217,15 +1217,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 105,
"id": "1aa45b35-7376-4c50-8275-79b090a6c758", "id": "1aa45b35-7376-4c50-8275-79b090a6c758",
"metadata": { "metadata": {
"execution": { "execution": {
"iopub.execute_input": "2023-11-06T11:49:54.423587Z", "iopub.execute_input": "2023-11-08T01:55:24.418823Z",
"iopub.status.busy": "2023-11-06T11:49:54.423105Z", "iopub.status.busy": "2023-11-08T01:55:24.418534Z",
"iopub.status.idle": "2023-11-06T11:49:54.446801Z", "iopub.status.idle": "2023-11-08T01:55:24.459533Z",
"shell.execute_reply": "2023-11-06T11:49:54.446345Z", "shell.execute_reply": "2023-11-08T01:55:24.458755Z",
"shell.execute_reply.started": "2023-11-06T11:49:54.423549Z" "shell.execute_reply.started": "2023-11-08T01:55:24.418802Z"
}, },
"tags": [] "tags": []
}, },
@@ -1234,8 +1234,8 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"88\n", "217\n",
"88\n" "217\n"
] ]
} }
], ],
@@ -1258,7 +1258,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_20231106.csv'\n", "filename = 'data/places_result_20231108.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",