This commit is contained in:
512song committed 2023-05-04 20:58:35 +08:00
1 parent 5ac233adcc
commit 89ae72f87e
2 files changed
+185 -66

No files matched your search

+34 -35
View File
@@ -10,15 +10,15 @@
},
{
"cell_type": "code",
"execution_count": 149,
"execution_count": 153,
"id": "1b92b7c5-cb77-49da-95b7-34827ecf1d16",
"metadata": {
"execution": {
"iopub.execute_input": "2023-04-28T23:44:56.066757Z",
"iopub.status.busy": "2023-04-28T23:44:56.065886Z",
"iopub.status.idle": "2023-04-28T23:44:58.568470Z",
"shell.execute_reply": "2023-04-28T23:44:58.567666Z",
"shell.execute_reply.started": "2023-04-28T23:44:56.066716Z"
"iopub.execute_input": "2023-05-04T11:27:38.797630Z",
"iopub.status.busy": "2023-05-04T11:27:38.796775Z",
"iopub.status.idle": "2023-05-04T11:27:41.228231Z",
"shell.execute_reply": "2023-05-04T11:27:41.227480Z",
"shell.execute_reply.started": "2023-05-04T11:27:38.797589Z"
},
"tags": []
},
@@ -89,15 +89,15 @@
},
{
"cell_type": "code",
"execution_count": 150,
"execution_count": 154,
"id": "71e1ec6a-6797-4496-969a-1d1461b9ea58",
"metadata": {
"execution": {
"iopub.execute_input": "2023-04-28T23:45:21.332726Z",
"iopub.status.busy": "2023-04-28T23:45:21.331812Z",
"iopub.status.idle": "2023-04-28T23:45:21.591418Z",
"shell.execute_reply": "2023-04-28T23:45:21.590691Z",
"shell.execute_reply.started": "2023-04-28T23:45:21.332693Z"
"iopub.execute_input": "2023-05-04T11:27:59.843239Z",
"iopub.status.busy": "2023-05-04T11:27:59.842790Z",
"iopub.status.idle": "2023-05-04T11:28:00.142474Z",
"shell.execute_reply": "2023-05-04T11:28:00.141539Z",
"shell.execute_reply.started": "2023-05-04T11:27:59.843195Z"
},
"tags": []
},
@@ -106,10 +106,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"335\n",
"123 孙剑 已测试!\n",
"335\n",
"4136\n"
"466\n",
"466\n",
"4602\n"
]
}
],
@@ -132,7 +131,7 @@
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20230428.csv'\n",
"filename = 'data/places_result_20230504.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -165,7 +164,7 @@
" else:\n",
" for k1,v1 in v.items():\n",
" dict2[k][k1] = v1\n",
"filename = 'data/result_燕山石化(20230428).json'\n",
"filename = 'data/result_燕山石化(20230504).json'\n",
"with open(filename,'w') as fl:\n",
" json.dump(re_ta, fl, ensure_ascii=False) \n",
"print(len(re_ta))\n",
@@ -185,15 +184,15 @@
},
{
"cell_type": "code",
"execution_count": 151,
"execution_count": 156,
"id": "c24880ad-bbbd-4ad8-a894-cbcea389e822",
"metadata": {
"execution": {
"iopub.execute_input": "2023-04-28T23:46:14.648250Z",
"iopub.status.busy": "2023-04-28T23:46:14.647361Z",
"iopub.status.idle": "2023-04-28T23:46:14.803308Z",
"shell.execute_reply": "2023-04-28T23:46:14.802604Z",
"shell.execute_reply.started": "2023-04-28T23:46:14.648208Z"
"iopub.execute_input": "2023-05-04T11:28:48.304876Z",
"iopub.status.busy": "2023-05-04T11:28:48.304030Z",
"iopub.status.idle": "2023-05-04T11:28:48.493153Z",
"shell.execute_reply": "2023-05-04T11:28:48.492438Z",
"shell.execute_reply.started": "2023-05-04T11:28:48.304834Z"
},
"tags": []
},
@@ -205,7 +204,7 @@
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"title = ['编号','姓名','性别','单位','车间','班组','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"\n",
"filename = 'data/result_燕山石化(20230428).json'\n",
"filename = 'data/result_燕山石化(20230504).json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"\n",
@@ -230,7 +229,7 @@
" else:\n",
" list2.append('') \n",
" list1.append(list2)\n",
"filename = 'data/燕山石化体测情况表(20230428).xlsx'\n",
"filename = 'data/燕山石化体测情况表(20230504).xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",
@@ -250,15 +249,15 @@
},
{
"cell_type": "code",
"execution_count": 152,
"execution_count": 157,
"id": "68454877-f1fe-4eed-8a48-265e428f892e",
"metadata": {
"execution": {
"iopub.execute_input": "2023-04-28T23:46:28.786698Z",
"iopub.status.busy": "2023-04-28T23:46:28.786246Z",
"iopub.status.idle": "2023-04-28T23:46:28.816358Z",
"shell.execute_reply": "2023-04-28T23:46:28.815328Z",
"shell.execute_reply.started": "2023-04-28T23:46:28.786667Z"
"iopub.execute_input": "2023-05-04T11:29:06.618769Z",
"iopub.status.busy": "2023-05-04T11:29:06.617928Z",
"iopub.status.idle": "2023-05-04T11:29:06.651954Z",
"shell.execute_reply": "2023-05-04T11:29:06.651052Z",
"shell.execute_reply.started": "2023-05-04T11:29:06.618729Z"
},
"tags": []
},
@@ -267,7 +266,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{'储运厂工会': 37, '炼油厂工会': 42, '化学品厂工会': 29, '高科公司工会': 69, '有机化工厂工会': 91, '物装中心工会': 3, '合成树脂厂': 10, '热电厂工会': 2, '合成橡胶厂工会': 27, '教育培训中心工会': 2, '烯烃厂工会': 11, '检验计量中心工会': 8, '机关工会': 2, '生产运行保障中心': 2}\n"
"{'储运厂工会': 254, '合成树脂厂': 114, '检验计量中心工会': 13, '合成橡胶厂工会': 19, '炼油厂工会': 26, '化学品厂工会': 17, '烯烃厂工会': 12, '热电厂工会': 11}\n"
]
}
],
@@ -275,7 +274,7 @@
"import json\n",
"import openpyxl\n",
"\n",
"filename = 'data/result_燕山石化(20230428).json'\n",
"filename = 'data/result_燕山石化(20230504).json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"dict2 = {}\n",
@@ -290,7 +289,7 @@
" list2 = []\n",
" list2 = [k,v]\n",
" list1.append(list2)\n",
"filename = 'data/燕山石化部门测试人数情况表(20230428).xlsx'\n",
"filename = 'data/燕山石化部门测试人数情况表(20230504).xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",