20230424
This commit is contained in:
1 parent
db04db8a17
commit
95bf9fd7dc
2 files changed
+456
-35
No files matched your search
+35
-35
@@ -10,15 +10,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 100,
|
||||
"execution_count": 106,
|
||||
"id": "1b92b7c5-cb77-49da-95b7-34827ecf1d16",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-23T14:28:28.286159Z",
|
||||
"iopub.status.busy": "2023-04-23T14:28:28.285377Z",
|
||||
"iopub.status.idle": "2023-04-23T14:28:30.884454Z",
|
||||
"shell.execute_reply": "2023-04-23T14:28:30.883613Z",
|
||||
"shell.execute_reply.started": "2023-04-23T14:28:28.286119Z"
|
||||
"iopub.execute_input": "2023-04-24T10:05:01.926272Z",
|
||||
"iopub.status.busy": "2023-04-24T10:05:01.925417Z",
|
||||
"iopub.status.idle": "2023-04-24T10:05:04.468748Z",
|
||||
"shell.execute_reply": "2023-04-24T10:05:04.467687Z",
|
||||
"shell.execute_reply.started": "2023-04-24T10:05:01.926232Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -85,15 +85,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 103,
|
||||
"execution_count": 107,
|
||||
"id": "71e1ec6a-6797-4496-969a-1d1461b9ea58",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-23T14:40:40.245318Z",
|
||||
"iopub.status.busy": "2023-04-23T14:40:40.244479Z",
|
||||
"iopub.status.idle": "2023-04-23T14:40:40.427554Z",
|
||||
"shell.execute_reply": "2023-04-23T14:40:40.426732Z",
|
||||
"shell.execute_reply.started": "2023-04-23T14:40:40.245276Z"
|
||||
"iopub.execute_input": "2023-04-24T10:06:37.571983Z",
|
||||
"iopub.status.busy": "2023-04-24T10:06:37.571077Z",
|
||||
"iopub.status.idle": "2023-04-24T10:06:37.786825Z",
|
||||
"shell.execute_reply": "2023-04-24T10:06:37.785861Z",
|
||||
"shell.execute_reply.started": "2023-04-24T10:06:37.571941Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -102,10 +102,10 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"427\n",
|
||||
"4207 王新刚 已测试!\n",
|
||||
"427\n",
|
||||
"2223\n"
|
||||
"423\n",
|
||||
"5593 刘安全 已测试!\n",
|
||||
"423\n",
|
||||
"2645\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -128,7 +128,7 @@
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"\n",
|
||||
"filename = 'data/places_result_20230423.csv'\n",
|
||||
"filename = 'data/places_result_20230424.csv'\n",
|
||||
"with open(filename,'r',newline='') as csv_file:\n",
|
||||
" fl = csv.reader(csv_file,delimiter=',')\n",
|
||||
" header = next(fl) \n",
|
||||
@@ -161,7 +161,7 @@
|
||||
" else:\n",
|
||||
" for k1,v1 in v.items():\n",
|
||||
" dict2[k][k1] = v1\n",
|
||||
"filename = 'data/result_燕山石化(20230423).json'\n",
|
||||
"filename = 'data/result_燕山石化(20230424).json'\n",
|
||||
"with open(filename,'w') as fl:\n",
|
||||
" json.dump(re_ta, fl, ensure_ascii=False) \n",
|
||||
"print(len(re_ta))\n",
|
||||
@@ -181,15 +181,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 104,
|
||||
"execution_count": 108,
|
||||
"id": "c24880ad-bbbd-4ad8-a894-cbcea389e822",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-23T14:42:25.680289Z",
|
||||
"iopub.status.busy": "2023-04-23T14:42:25.679890Z",
|
||||
"iopub.status.idle": "2023-04-23T14:42:25.850582Z",
|
||||
"shell.execute_reply": "2023-04-23T14:42:25.849877Z",
|
||||
"shell.execute_reply.started": "2023-04-23T14:42:25.680261Z"
|
||||
"iopub.execute_input": "2023-04-24T10:08:16.575368Z",
|
||||
"iopub.status.busy": "2023-04-24T10:08:16.574601Z",
|
||||
"iopub.status.idle": "2023-04-24T10:08:16.751333Z",
|
||||
"shell.execute_reply": "2023-04-24T10:08:16.750617Z",
|
||||
"shell.execute_reply.started": "2023-04-24T10:08:16.575338Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -200,7 +200,7 @@
|
||||
"\n",
|
||||
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||
"title = ['编号','姓名','性别','单位','车间','班组','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||
"filename = 'data/result_燕山石化(20230423).json'\n",
|
||||
"filename = 'data/result_燕山石化(20230424).json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"\n",
|
||||
@@ -225,7 +225,7 @@
|
||||
" else:\n",
|
||||
" list2.append('') \n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/燕山石化体测情况表(20230423).xlsx'\n",
|
||||
"filename = 'data/燕山石化体测情况表(20230424).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
@@ -245,15 +245,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 105,
|
||||
"execution_count": 109,
|
||||
"id": "68454877-f1fe-4eed-8a48-265e428f892e",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-23T14:48:24.388302Z",
|
||||
"iopub.status.busy": "2023-04-23T14:48:24.387468Z",
|
||||
"iopub.status.idle": "2023-04-23T14:48:24.424034Z",
|
||||
"shell.execute_reply": "2023-04-23T14:48:24.422941Z",
|
||||
"shell.execute_reply.started": "2023-04-23T14:48:24.388269Z"
|
||||
"iopub.execute_input": "2023-04-24T10:08:30.444506Z",
|
||||
"iopub.status.busy": "2023-04-24T10:08:30.444058Z",
|
||||
"iopub.status.idle": "2023-04-24T10:08:30.475858Z",
|
||||
"shell.execute_reply": "2023-04-24T10:08:30.474801Z",
|
||||
"shell.execute_reply.started": "2023-04-24T10:08:30.444476Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -262,7 +262,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'行政事务中心(离退中心)工会': 7, '检验计量中心工会': 140, '炼油厂工会': 35, '合成橡胶厂工会': 138, '有机化工厂工会': 10, '热电厂工会': 63, '消防中心工会': 2, '化学品厂工会': 6, '机关工会': 10, '烯烃厂工会': 8, '生产运行保障中心': 6, '物装中心工会': 1, '储运厂工会': 1}\n"
|
||||
"{'行政事务中心(离退中心)工会': 8, '热电厂工会': 1, '化学品厂工会': 55, '高科公司工会': 102, '炼油厂工会': 51, '有机化工厂工会': 131, '检验计量中心工会': 32, '物装中心工会': 2, '生产运行保障中心': 2, '烯烃厂工会': 6, '机关工会': 8, '合成树脂厂': 14, '消防中心工会': 2, '合成橡胶厂工会': 8, '储运厂工会': 1}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -270,7 +270,7 @@
|
||||
"import json\n",
|
||||
"import openpyxl\n",
|
||||
"\n",
|
||||
"filename = 'data/result_燕山石化(20230423).json'\n",
|
||||
"filename = 'data/result_燕山石化(20230424).json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"dict2 = {}\n",
|
||||
@@ -285,7 +285,7 @@
|
||||
" list2 = []\n",
|
||||
" list2 = [k,v]\n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/燕山石化部门测试人数情况表(20230423).xlsx'\n",
|
||||
"filename = 'data/燕山石化部门测试人数情况表(20230424).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
|
||||
Reference in new issue
Block a user