This commit is contained in:
512song committed 2024-09-18 10:19:45 +08:00
1 parent 724bf28fbf
commit 63f678daf4
9 files changed
+927 -228

No files matched your search

+8 -8
View File
@@ -544,15 +544,15 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 2,
"id": "141b30dc-5975-4dcb-9bc3-9b20d26a0917",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T02:17:12.600627Z",
"iopub.status.busy": "2024-07-11T02:17:12.599890Z",
"iopub.status.idle": "2024-07-11T02:17:12.621489Z",
"shell.execute_reply": "2024-07-11T02:17:12.621025Z",
"shell.execute_reply.started": "2024-07-11T02:17:12.600557Z"
"iopub.execute_input": "2024-09-14T12:17:16.275045Z",
"iopub.status.busy": "2024-09-14T12:17:16.274382Z",
"iopub.status.idle": "2024-09-14T12:17:16.304051Z",
"shell.execute_reply": "2024-09-14T12:17:16.303490Z",
"shell.execute_reply.started": "2024-09-14T12:17:16.274984Z"
},
"tags": []
},
@@ -662,7 +662,7 @@
"\n",
"#list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','height','weight']\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp']\n",
"filename = 'data/result_天宫院社区2024.json'\n",
"filename = 'data/result_北体体质康健1.json'\n",
"with open(filename,'r') as fl:\n",
" dict2 = json.load(fl) \n",
"for k, v in dict2.items():\n",
@@ -683,7 +683,7 @@
" dict2[k][item_en]['score'] = cal_score(data1)\n",
" #print(k,v[item_en]['成绩'],cal_score(data1))\n",
"\n",
"filename = f'data/result_天宫院街道1.json'\n",
"filename = f'data/result_北体体质康健2.json'\n",
"with open(filename,'w') as fl:\n",
" json.dump(dict2,fl , ensure_ascii=False) \n",
"print('ok!') "