This commit is contained in:
512song committed 2024-09-29 10:22:23 +08:00
1 parent 3a9cb48f1e
commit c03192efe5
4 files changed
+295 -113

No files matched your search

+32 -7
View File
@@ -2367,10 +2367,27 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "1e2d586e-6ff5-4fd1-a909-278d23e54561",
"metadata": {},
"outputs": [],
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-29T02:18:02.228980Z",
"iopub.status.busy": "2024-09-29T02:18:02.228201Z",
"iopub.status.idle": "2024-09-29T02:18:02.253056Z",
"shell.execute_reply": "2024-09-29T02:18:02.252599Z",
"shell.execute_reply.started": "2024-09-29T02:18:02.228910Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"80\n",
"80\n"
]
}
],
"source": [
"import json\n",
"import time\n",
@@ -2390,7 +2407,7 @@
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20240705.csv'\n",
"filename = 'data/places_result_20240929.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -2428,9 +2445,17 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "64c6e1e3-801c-4573-b78f-5a9e842597a9",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-09-29T02:18:45.748557Z",
"iopub.status.busy": "2024-09-29T02:18:45.748059Z",
"iopub.status.idle": "2024-09-29T02:18:45.957948Z",
"shell.execute_reply": "2024-09-29T02:18:45.957465Z",
"shell.execute_reply.started": "2024-09-29T02:18:45.748511Z"
}
},
"outputs": [],
"source": [
"import json\n",
@@ -2463,7 +2488,7 @@
" else:\n",
" list2.append('') \n",
" list1.append(list2)\n",
"filename = 'data/湖南石化青年体质检测.xlsx'\n",
"filename = 'data/湖南石化青年体质检测情况表(20240720).xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",