This commit is contained in:
512song committed 2024-11-22 15:50:59 +08:00
1 parent aede8ad173
commit ac36b00339
5 files changed
+297 -152

No files matched your search

+9 -7
View File
@@ -1492,6 +1492,7 @@
"cell_type": "markdown",
"id": "73524e7f-4262-46d3-a733-74ac18e43855",
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
@@ -3315,15 +3316,15 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 1,
"id": "e92d76a8-6841-4a1b-8529-caa5e37d624a",
"metadata": {
"execution": {
"iopub.execute_input": "2024-11-12T05:58:46.035955Z",
"iopub.status.busy": "2024-11-12T05:58:46.035162Z",
"iopub.status.idle": "2024-11-12T05:58:47.364269Z",
"shell.execute_reply": "2024-11-12T05:58:47.363796Z",
"shell.execute_reply.started": "2024-11-12T05:58:46.035893Z"
"iopub.execute_input": "2024-11-22T02:08:10.643448Z",
"iopub.status.busy": "2024-11-22T02:08:10.642748Z",
"iopub.status.idle": "2024-11-22T02:08:12.178978Z",
"shell.execute_reply": "2024-11-22T02:08:12.178427Z",
"shell.execute_reply.started": "2024-11-22T02:08:10.643386Z"
}
},
"outputs": [
@@ -3341,7 +3342,7 @@
"\n",
"items = ['lung','grip','flexion','jump','pushup','situp','balance','reaction','step']\n",
"bmi = ['height','weight']\n",
"title = ['编号','姓名','性别','单位','部门','身高','体重','bmi','肺活量','','握力','','坐位体前屈','','纵跳','','俯卧撑','','一分钟仰卧起坐','','单脚站立','','选择反应时','','台阶指数']\n",
"title = ['测试编号','员工编号','姓名','性别','单位','部门','身高','体重','bmi','肺活量','','握力','','坐位体前屈','','纵跳','','俯卧撑','','一分钟仰卧起坐','','单脚站立','','选择反应时','','台阶指数']\n",
"\n",
"filename = 'data/result_天津石化2024.json'\n",
"with open(filename,'r') as fl:\n",
@@ -3354,6 +3355,7 @@
"for k, v in dict1.items(): #print(k,dict2[str(k)]['name'])\n",
" list2 = []\n",
" list2.append(str(k).rjust(5,'0'))\n",
" list2.append(dict2[k]['id'])\n",
" list2.append(dict1[k]['name']) \n",
" list2.append(dict1[k]['sex'])\n",
" list2.append(dict1[k]['unit'])\n",