diff --git a/体测单位/体质检测数据处理.ipynb b/体测单位/体质检测数据处理.ipynb index e0d8b4a..0c3ffd3 100644 --- a/体测单位/体质检测数据处理.ipynb +++ b/体测单位/体质检测数据处理.ipynb @@ -198,15 +198,15 @@ }, { "cell_type": "code", - "execution_count": 61, + "execution_count": 98, "id": "f32b266a-7e46-4703-ab61-7cbbc81b5ab1", "metadata": { "execution": { - "iopub.execute_input": "2022-12-11T05:22:41.852604Z", - "iopub.status.busy": "2022-12-11T05:22:41.852315Z", - "iopub.status.idle": "2022-12-11T05:22:41.865812Z", - "shell.execute_reply": "2022-12-11T05:22:41.864367Z", - "shell.execute_reply.started": "2022-12-11T05:22:41.852578Z" + "iopub.execute_input": "2022-12-15T01:23:46.345354Z", + "iopub.status.busy": "2022-12-15T01:23:46.344556Z", + "iopub.status.idle": "2022-12-15T01:23:46.364220Z", + "shell.execute_reply": "2022-12-15T01:23:46.363538Z", + "shell.execute_reply.started": "2022-12-15T01:23:46.345276Z" }, "tags": [] }, @@ -216,8 +216,7 @@ "output_type": "stream", "text": [ "[25.9, 31.5, 38.6, 44.0, 50.8]\n", - "25.9\n", - "0\n" + "5\n" ] } ], @@ -233,7 +232,7 @@ " dict1 = json.load(fl) \n", "person = dict1['person']\n", "criteria = dict1['criteria']\n", - "data = {'name':'张三','sex':'M','age':59,'item':'PowerfullGrip','result':12.0}\n", + "data = {'name':'张三','sex':'M','age':59,'item':'PowerfullGrip','result':51.0}\n", "info = data['sex']+str(data['age'])\n", "bz = person[info]\n", "mx = criteria[bz][data['item']]\n", @@ -245,8 +244,10 @@ " print(bz1)\n", " score = mx.index(bz1,0)\n", " break\n", - "if score == -1:\n", - " score = 5\n", + " else:\n", + " score = 5\n", + "#if score == -1:\n", + " # score = 5\n", "print(score)" ] },