This commit is contained in:
512song committed 2024-09-30 17:53:41 +08:00
1 parent c03192efe5
commit e0bfb443be
4 files changed
+474 -605

No files matched your search

+19 -20
View File
@@ -4,7 +4,6 @@
"cell_type": "markdown",
"id": "55644860-57e6-466b-b6e9-e6fdd807498d",
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
@@ -2367,15 +2366,15 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"id": "1e2d586e-6ff5-4fd1-a909-278d23e54561",
"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"
"iopub.execute_input": "2024-09-29T05:14:10.446230Z",
"iopub.status.busy": "2024-09-29T05:14:10.445350Z",
"iopub.status.idle": "2024-09-29T05:14:10.477950Z",
"shell.execute_reply": "2024-09-29T05:14:10.477374Z",
"shell.execute_reply.started": "2024-09-29T05:14:10.446151Z"
}
},
"outputs": [
@@ -2383,8 +2382,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"80\n",
"80\n"
"212\n",
"212\n"
]
}
],
@@ -2403,7 +2402,7 @@
"re_ta = {}\n",
"dict1 = {}\n",
"list1 = []\n",
"filename = 'data/湖南石化青年体质检测.json'\n",
"filename = 'data/长炼医院人员2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
@@ -2428,7 +2427,7 @@
" score = int(result[4])/item[m_item]['divisor'] \n",
" re_ta[user][item_name]['成绩'] = f'{score} {item[m_item][\"unit\"]}'\n",
"print(len(re_ta))\n",
"filename = 'data/result_湖南石化青年体质检测.json'\n",
"filename = 'data/result_长炼医院人员2024.json'\n",
"\n",
"with open(filename,'w') as fl:\n",
" json.dump(re_ta, fl, ensure_ascii=False) \n",
@@ -2445,15 +2444,15 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 4,
"id": "64c6e1e3-801c-4573-b78f-5a9e842597a9",
"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"
"iopub.execute_input": "2024-09-29T05:14:43.182012Z",
"iopub.status.busy": "2024-09-29T05:14:43.181450Z",
"iopub.status.idle": "2024-09-29T05:14:43.242249Z",
"shell.execute_reply": "2024-09-29T05:14:43.241683Z",
"shell.execute_reply.started": "2024-09-29T05:14:43.181959Z"
}
},
"outputs": [],
@@ -2464,11 +2463,11 @@
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"title = ['编号','姓名','性别','单位','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"\n",
"filename = 'data/result_湖南石化青年体质检测.json'\n",
"filename = 'data/result_长炼医院人员2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"\n",
"filename = 'data/湖南石化青年体质检测.json'\n",
"filename = 'data/长炼医院人员2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict2 = json.load(fl)\n",
" \n",
@@ -2488,7 +2487,7 @@
" else:\n",
" list2.append('') \n",
" list1.append(list2)\n",
"filename = 'data/湖南石化青年体质检测情况表(20240720).xlsx'\n",
"filename = 'data/长炼医院人员检测情况表(20240720).xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",