20221026
This commit is contained in:
1 parent
e8ceb486f9
commit
8b46588049
2 files changed
+458
-23
No files matched your search
+23
-23
@@ -10,15 +10,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"execution_count": 30,
|
||||
"id": "1144aaac-92a0-4bcf-aba7-096f7dd3ad3b",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2022-10-24T01:23:19.812476Z",
|
||||
"iopub.status.busy": "2022-10-24T01:23:19.811935Z",
|
||||
"iopub.status.idle": "2022-10-24T01:23:21.182395Z",
|
||||
"shell.execute_reply": "2022-10-24T01:23:21.180972Z",
|
||||
"shell.execute_reply.started": "2022-10-24T01:23:19.812426Z"
|
||||
"iopub.execute_input": "2022-10-26T15:14:22.185120Z",
|
||||
"iopub.status.busy": "2022-10-26T15:14:22.184598Z",
|
||||
"iopub.status.idle": "2022-10-26T15:14:23.499268Z",
|
||||
"shell.execute_reply": "2022-10-26T15:14:23.498134Z",
|
||||
"shell.execute_reply.started": "2022-10-26T15:14:22.185071Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -67,15 +67,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"execution_count": 26,
|
||||
"id": "a57ebb22-543c-4804-8d44-89984058ec1d",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2022-10-24T01:21:48.803009Z",
|
||||
"iopub.status.busy": "2022-10-24T01:21:48.802465Z",
|
||||
"iopub.status.idle": "2022-10-24T01:21:48.864714Z",
|
||||
"shell.execute_reply": "2022-10-24T01:21:48.863863Z",
|
||||
"shell.execute_reply.started": "2022-10-24T01:21:48.802959Z"
|
||||
"iopub.execute_input": "2022-10-26T15:13:30.118858Z",
|
||||
"iopub.status.busy": "2022-10-26T15:13:30.118322Z",
|
||||
"iopub.status.idle": "2022-10-26T15:13:30.350334Z",
|
||||
"shell.execute_reply": "2022-10-26T15:13:30.349005Z",
|
||||
"shell.execute_reply.started": "2022-10-26T15:13:30.118808Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -107,7 +107,7 @@
|
||||
"dict1 = {}\n",
|
||||
"list1 = []\n",
|
||||
"#print(\"\\n运动项目信息:\")\n",
|
||||
"filename = 'data/134_221021.csv'\n",
|
||||
"filename = 'data/134_2210.csv'\n",
|
||||
"with open(filename,'r',newline='') as csv_file:\n",
|
||||
" fl = csv.reader(csv_file,delimiter=',')\n",
|
||||
" header = next(fl) \n",
|
||||
@@ -142,15 +142,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"execution_count": 31,
|
||||
"id": "38397ad4-2bb3-4b5e-8ece-9ea11e801890",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2022-10-24T01:28:35.781995Z",
|
||||
"iopub.status.busy": "2022-10-24T01:28:35.781432Z",
|
||||
"iopub.status.idle": "2022-10-24T01:28:36.097993Z",
|
||||
"shell.execute_reply": "2022-10-24T01:28:36.097009Z",
|
||||
"shell.execute_reply.started": "2022-10-24T01:28:35.781947Z"
|
||||
"iopub.execute_input": "2022-10-26T15:14:26.661745Z",
|
||||
"iopub.status.busy": "2022-10-26T15:14:26.661218Z",
|
||||
"iopub.status.idle": "2022-10-26T15:14:27.250915Z",
|
||||
"shell.execute_reply": "2022-10-26T15:14:27.249692Z",
|
||||
"shell.execute_reply.started": "2022-10-26T15:14:26.661696Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -160,7 +160,7 @@
|
||||
"import openpyxl\n",
|
||||
"\n",
|
||||
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||
"title = ['编号','姓名','性别','单位/部门','车间/科室','身高','','体重','','肺活量','','握力','','坐位体前屈','','纵跳','','俯卧撑','','一分钟仰卧起坐','','单脚站立','','选择反应时','','台阶指数']\n",
|
||||
"title = ['编号','姓名','性别','单位/部门','车间/科室','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||
"filename = 'data/result_天津.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
@@ -181,14 +181,14 @@
|
||||
" for item in items:\n",
|
||||
" if item in v.keys():\n",
|
||||
" list2.append(v[item]['成绩'])\n",
|
||||
" list2.append(v[item]['得分'])\n",
|
||||
" \n",
|
||||
" elif item =='name':\n",
|
||||
" list2.append(v[item])\n",
|
||||
" else:\n",
|
||||
" list2.append('') \n",
|
||||
" list2.append('') \n",
|
||||
" \n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/天津石化得分情况表.xlsx'\n",
|
||||
"filename = 'data/天津石化体测情况表(截至20221026).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
|
||||
Reference in new issue
Block a user