250251215

This commit is contained in:
512song committed 2025-12-15 08:11:54 +08:00
1 parent c19ca272d7
commit 6803e6fff6
6 files changed
+1464 -620

No files matched your search

+27 -15
View File
@@ -2310,15 +2310,15 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"id": "6f9768ce-2ef5-4253-9fc6-49dbdcf00a19",
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-04T01:12:54.320249Z",
"iopub.status.busy": "2025-12-04T01:12:54.319633Z",
"iopub.status.idle": "2025-12-04T01:12:54.339019Z",
"shell.execute_reply": "2025-12-04T01:12:54.337721Z",
"shell.execute_reply.started": "2025-12-04T01:12:54.320195Z"
"iopub.execute_input": "2025-12-12T13:17:17.795264Z",
"iopub.status.busy": "2025-12-12T13:17:17.794719Z",
"iopub.status.idle": "2025-12-12T13:17:17.805357Z",
"shell.execute_reply": "2025-12-12T13:17:17.804292Z",
"shell.execute_reply.started": "2025-12-12T13:17:17.795214Z"
}
},
"outputs": [],
@@ -2672,23 +2672,35 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 9,
"id": "9ecd3ad8-c8af-4f3e-90e5-1618fea905a4",
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-04T01:13:55.931481Z",
"iopub.status.busy": "2025-12-04T01:13:55.930100Z",
"iopub.status.idle": "2025-12-04T01:13:55.996588Z",
"shell.execute_reply": "2025-12-04T01:13:55.996041Z",
"shell.execute_reply.started": "2025-12-04T01:13:55.931411Z"
"iopub.execute_input": "2025-12-12T13:46:10.803542Z",
"iopub.status.busy": "2025-12-12T13:46:10.802812Z",
"iopub.status.idle": "2025-12-12T13:46:10.973193Z",
"shell.execute_reply": "2025-12-12T13:46:10.972533Z",
"shell.execute_reply.started": "2025-12-12T13:46:10.803460Z"
}
},
"outputs": [],
"outputs": [
{
"ename": "IndexError",
"evalue": "list index out of range",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mIndexError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[9], line 57\u001b[0m\n\u001b[1;32m 55\u001b[0m psy\u001b[38;5;241m=\u001b[39mv[\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpsy_yangmiao_old\u001b[39m\u001b[38;5;124m'\u001b[39m]\n\u001b[1;32m 56\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m i \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28mrange\u001b[39m(\u001b[38;5;241m26\u001b[39m,\u001b[38;5;241m40\u001b[39m):\n\u001b[0;32m---> 57\u001b[0m new_valve \u001b[38;5;241m=\u001b[39m \u001b[43mpsy\u001b[49m\u001b[43m[\u001b[49m\u001b[43mi\u001b[49m\u001b[43m]\u001b[49m\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m1\u001b[39m\n\u001b[1;32m 58\u001b[0m psy[i] \u001b[38;5;241m=\u001b[39m new_valve\n\u001b[1;32m 59\u001b[0m dict3 \u001b[38;5;241m=\u001b[39m {}\n",
"\u001b[0;31mIndexError\u001b[0m: list index out of range"
]
}
],
"source": [
"import openpyxl\n",
"\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp']\n",
"filename = 'data/result_新疆油田采油工艺研究院2511.json'\n",
"filename = 'data/result_油田老年大学年度体质复测.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"data_list = []\n",
@@ -2770,7 +2782,7 @@
" list6.append('')\n",
" i+=1\n",
" data_list.append(list6)\n",
"filename = 'data/新疆油田采油工艺研究院体质检测明细表(2025年11月).xlsx'\n",
"filename = 'data/油田老年大学年度体质复测体质检测明细表(2025年11月).xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"title = ['编号', '姓名', '性别', '单位/部门', '年龄', '身高', '体重', 'bmi', '肺活量', '得分', '握力', '得分', '坐位体前屈', '得分', '纵跳', '得分', '俯卧撑', '得分', '单脚站立', '得分', '选择反应时', '得分', '台阶指数', '得分', '一分钟仰卧起坐', '得分', '中医体质', '是否倾向', '平和', '气虚', '阳虚', '阴虚', '痰湿', '湿热', '血瘀', '气郁', '特禀', '成就感', '愉快心理', '放松程度', '压力应对', '体力充沛', '情感充沛度', '颈椎', '胸椎', '腰椎', '骶尾椎']\n",