This commit is contained in:
512song committed 2024-09-24 19:37:04 +08:00
1 parent 96f043313c
commit 3a9cb48f1e
5 files changed
+1697 -229

No files matched your search

+27 -27
View File
@@ -431,15 +431,15 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 1,
"id": "3e614f4a-a623-48e2-97f8-b31f62c9a983",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T02:15:15.011907Z",
"iopub.status.busy": "2024-07-11T02:15:15.011411Z",
"iopub.status.idle": "2024-07-11T02:15:15.033470Z",
"shell.execute_reply": "2024-07-11T02:15:15.032441Z",
"shell.execute_reply.started": "2024-07-11T02:15:15.011858Z"
"iopub.execute_input": "2024-09-23T09:01:55.163463Z",
"iopub.status.busy": "2024-09-23T09:01:55.162587Z",
"iopub.status.idle": "2024-09-23T09:01:55.182154Z",
"shell.execute_reply": "2024-09-23T09:01:55.181668Z",
"shell.execute_reply.started": "2024-09-23T09:01:55.163386Z"
},
"tags": []
},
@@ -448,8 +448,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"47\n",
"47\n"
"31\n",
"31\n"
]
}
],
@@ -482,11 +482,11 @@
"re_ta = {}\n",
"dict1 = {}\n",
"list1 = []\n",
"filename = 'data/天宫院街道2024.json'\n",
"filename = 'data/天宫院社区240922.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20240710.csv'\n",
"filename = 'data/places_result_20240923.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -527,7 +527,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_天宫院社区2024.json'\n",
"filename = 'data/result_天宫院社区240922.json'\n",
"\n",
"with open(filename,'w') as fl:\n",
" json.dump(re_ta, fl, ensure_ascii=False) \n",
@@ -548,11 +548,11 @@
"id": "141b30dc-5975-4dcb-9bc3-9b20d26a0917",
"metadata": {
"execution": {
"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"
"iopub.execute_input": "2024-09-23T09:02:38.046594Z",
"iopub.status.busy": "2024-09-23T09:02:38.045904Z",
"iopub.status.idle": "2024-09-23T09:02:38.070709Z",
"shell.execute_reply": "2024-09-23T09:02:38.070026Z",
"shell.execute_reply.started": "2024-09-23T09:02:38.046526Z"
},
"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_北体体质康健1.json'\n",
"filename = 'data/result_天宫院社区240922.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_北体体质康健2.json'\n",
"filename = f'data/result_天宫院社区240922.json'\n",
"with open(filename,'w') as fl:\n",
" json.dump(dict2,fl , ensure_ascii=False) \n",
"print('ok!') "
@@ -846,15 +846,15 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 3,
"id": "b123ee6b-85d2-4660-b226-321832a6b796",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-11T02:18:04.079962Z",
"iopub.status.busy": "2024-07-11T02:18:04.079156Z",
"iopub.status.idle": "2024-07-11T02:18:13.608066Z",
"shell.execute_reply": "2024-07-11T02:18:13.606969Z",
"shell.execute_reply.started": "2024-07-11T02:18:04.079886Z"
"iopub.execute_input": "2024-09-23T09:03:50.560872Z",
"iopub.status.busy": "2024-09-23T09:03:50.560147Z",
"iopub.status.idle": "2024-09-23T09:04:05.194187Z",
"shell.execute_reply": "2024-09-23T09:04:05.193055Z",
"shell.execute_reply.started": "2024-09-23T09:03:50.560801Z"
},
"tags": []
},
@@ -863,7 +863,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"22\n"
"31\n"
]
}
],
@@ -876,11 +876,11 @@
"headers = {\n",
" \"Content-Type\": \"application/json; charset=UTF-8\"\n",
" }\n",
"filename = 'data/result_天宫院街道1.json'\n",
"filename = 'data/result_天宫院社区240922.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"list1 = []\n",
"file_path ='./天宫院2024/'\n",
"file_path ='./天宫院240922/'\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n",
"i=0\n",
"list2 = []\n",