This commit is contained in:
512song committed 2023-06-15 19:56:21 +08:00
1 parent 565a9517ce
commit f134edb2d6
4 files changed
+1767 -44

No files matched your search

+40 -6
View File
@@ -168,12 +168,29 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 14,
"id": "f32b266a-7e46-4703-ab61-7cbbc81b5ab1",
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-09T03:17:48.044584Z",
"iopub.status.busy": "2023-06-09T03:17:48.044175Z",
"iopub.status.idle": "2023-06-09T03:17:48.054183Z",
"shell.execute_reply": "2023-06-09T03:17:48.053116Z",
"shell.execute_reply.started": "2023-06-09T03:17:48.044557Z"
},
"tags": []
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[41.3, 46.2, 52.3, 58.8, 68.2]\n",
"46.2\n",
"1\n"
]
}
],
"source": [
"import json\n",
"import time\n",
@@ -186,7 +203,7 @@
" dict1 = json.load(fl) \n",
"person = dict1['person']\n",
"criteria = dict1['criteria']\n",
"data = {'name':'张三','sex':'M','age':59,'item':'PowerfullGrip','result':51.0}\n",
"data = {'name':'张三','sex':'M','age':37,'item':'StepExperiment','result':46}\n",
"info = data['sex']+str(data['age'])\n",
"bz = person[info]\n",
"mx = criteria[bz][data['item']]\n",
@@ -215,12 +232,29 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"id": "b32fbbdd-eb0a-4f0d-8901-e39a727c3ff8",
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-09T03:07:07.558861Z",
"iopub.status.busy": "2023-06-09T03:07:07.557966Z",
"iopub.status.idle": "2023-06-09T03:07:07.572751Z",
"shell.execute_reply": "2023-06-09T03:07:07.571714Z",
"shell.execute_reply.started": "2023-06-09T03:07:07.558820Z"
},
"tags": []
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"M30~39\n",
"177.7,97.0\n",
"1\n"
]
}
],
"source": [
"import json\n",
"import time\n",
@@ -233,7 +267,7 @@
" dict1 = json.load(fl) \n",
"person = dict1['person']\n",
"criteria = dict1['criteria']\n",
"data = {'name':'张三','sex':'M','age':59,'item':'HeightWeight','result':'177.0,81.1'}\n",
"data = {'name':'张三','sex':'M','age':37,'item':'HeightWeight','result':'177.7,97.0'}\n",
"info = data['sex']+str(data['age'])\n",
"\n",
"bz = person[info]\n",