This commit is contained in:
512song committed 2024-10-23 18:01:20 +08:00
1 parent ef48e3667c
commit 7af0af0f7e
3 files changed
+194 -197

No files matched your search

+31 -31
View File
@@ -2869,15 +2869,15 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 30,
"id": "2fdbadd7-e9b1-45bf-ae95-52b4d65e03e8",
"metadata": {
"execution": {
"iopub.execute_input": "2024-10-21T10:06:26.974537Z",
"iopub.status.busy": "2024-10-21T10:06:26.973770Z",
"iopub.status.idle": "2024-10-21T10:06:27.568893Z",
"shell.execute_reply": "2024-10-21T10:06:27.568360Z",
"shell.execute_reply.started": "2024-10-21T10:06:26.974467Z"
"iopub.execute_input": "2024-10-23T09:55:33.364069Z",
"iopub.status.busy": "2024-10-23T09:55:33.363405Z",
"iopub.status.idle": "2024-10-23T09:55:33.951219Z",
"shell.execute_reply": "2024-10-23T09:55:33.950610Z",
"shell.execute_reply.started": "2024-10-23T09:55:33.364010Z"
}
},
"outputs": [
@@ -2978,15 +2978,15 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 31,
"id": "f922ad6a-e7ff-4ff9-923f-3e7aa8ea112b",
"metadata": {
"execution": {
"iopub.execute_input": "2024-10-21T10:06:44.171412Z",
"iopub.status.busy": "2024-10-21T10:06:44.170650Z",
"iopub.status.idle": "2024-10-21T10:06:44.271785Z",
"shell.execute_reply": "2024-10-21T10:06:44.271220Z",
"shell.execute_reply.started": "2024-10-21T10:06:44.171341Z"
"iopub.execute_input": "2024-10-23T09:55:59.147673Z",
"iopub.status.busy": "2024-10-23T09:55:59.146895Z",
"iopub.status.idle": "2024-10-23T09:55:59.282790Z",
"shell.execute_reply": "2024-10-23T09:55:59.282220Z",
"shell.execute_reply.started": "2024-10-23T09:55:59.147598Z"
}
},
"outputs": [
@@ -2994,8 +2994,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"1500\n",
"1500\n"
"2284\n",
"2284\n"
]
}
],
@@ -3018,7 +3018,7 @@
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20241021.csv'\n",
"filename = 'data/places_result_20241023.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -3057,15 +3057,15 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 32,
"id": "f59cf12c-d409-4de8-80f9-8264e4a2d221",
"metadata": {
"execution": {
"iopub.execute_input": "2024-10-21T10:06:58.056883Z",
"iopub.status.busy": "2024-10-21T10:06:58.056217Z",
"iopub.status.idle": "2024-10-21T10:06:58.205426Z",
"shell.execute_reply": "2024-10-21T10:06:58.204917Z",
"shell.execute_reply.started": "2024-10-21T10:06:58.056824Z"
"iopub.execute_input": "2024-10-23T09:56:07.021662Z",
"iopub.status.busy": "2024-10-23T09:56:07.021113Z",
"iopub.status.idle": "2024-10-23T09:56:07.230651Z",
"shell.execute_reply": "2024-10-23T09:56:07.230168Z",
"shell.execute_reply.started": "2024-10-23T09:56:07.021612Z"
}
},
"outputs": [],
@@ -3074,8 +3074,8 @@
"import openpyxl\n",
"\n",
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"title = ['编号','姓名','性别','单位','部门','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"\n",
"#title = ['编号','姓名','性别','单位','部门','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"title = ['编号','姓名','性别','单位','部门']\n",
"filename = 'data/result_天津2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
@@ -3093,7 +3093,7 @@
" list2.append(dict2[k]['unit'])\n",
" list2.append(dict2[k]['sub_unit'])\n",
" list1.append(list2)\n",
"filename = 'data/天津石化体测情况(截至20241021).xlsx'\n",
"filename = 'data/天津石化体测情况(截至20241023).xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",
@@ -3113,15 +3113,15 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 33,
"id": "8301201e-43fc-4d24-94a0-9c554ca39dfb",
"metadata": {
"execution": {
"iopub.execute_input": "2024-10-21T10:07:07.304706Z",
"iopub.status.busy": "2024-10-21T10:07:07.303931Z",
"iopub.status.idle": "2024-10-21T10:07:07.344670Z",
"shell.execute_reply": "2024-10-21T10:07:07.344247Z",
"shell.execute_reply.started": "2024-10-21T10:07:07.304631Z"
"iopub.execute_input": "2024-10-23T09:56:17.323294Z",
"iopub.status.busy": "2024-10-23T09:56:17.322526Z",
"iopub.status.idle": "2024-10-23T09:56:17.364386Z",
"shell.execute_reply": "2024-10-23T09:56:17.363829Z",
"shell.execute_reply.started": "2024-10-23T09:56:17.323222Z"
}
},
"outputs": [],
@@ -3157,7 +3157,7 @@
" list2 = [k,v['人数']]\n",
" list1.append(list2)\n",
"\n",
"filename = 'data/天津部门未测试情况(截至20241021).xlsx'\n",
"filename = 'data/天津部门未测试情况(截至20241023).xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",