20251124
This commit is contained in:
1 parent
4f0f65a076
commit
aff0303bc9
5 files changed
+2192
-1715
No files matched your search
+75
-22
@@ -3413,15 +3413,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"execution_count": 24,
|
||||
"id": "c101eccb-a2f3-4404-9583-682cec049160",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-11-10T10:34:09.617871Z",
|
||||
"iopub.status.busy": "2025-11-10T10:34:09.617343Z",
|
||||
"iopub.status.idle": "2025-11-10T10:34:10.297071Z",
|
||||
"shell.execute_reply": "2025-11-10T10:34:10.296491Z",
|
||||
"shell.execute_reply.started": "2025-11-10T10:34:09.617822Z"
|
||||
"iopub.execute_input": "2025-11-21T13:09:40.491935Z",
|
||||
"iopub.status.busy": "2025-11-21T13:09:40.491689Z",
|
||||
"iopub.status.idle": "2025-11-21T13:09:41.068111Z",
|
||||
"shell.execute_reply": "2025-11-21T13:09:41.067547Z",
|
||||
"shell.execute_reply.started": "2025-11-21T13:09:40.491915Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -3429,7 +3429,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"5053 ok\n"
|
||||
"5057 ok\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -3521,15 +3521,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"execution_count": 25,
|
||||
"id": "52de3ba0-f430-444b-87e9-1f13c3e2dcc2",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-11-19T10:29:58.335947Z",
|
||||
"iopub.status.busy": "2025-11-19T10:29:58.335228Z",
|
||||
"iopub.status.idle": "2025-11-19T10:29:58.415390Z",
|
||||
"shell.execute_reply": "2025-11-19T10:29:58.414784Z",
|
||||
"shell.execute_reply.started": "2025-11-19T10:29:58.335884Z"
|
||||
"iopub.execute_input": "2025-11-21T13:09:49.032705Z",
|
||||
"iopub.status.busy": "2025-11-21T13:09:49.032208Z",
|
||||
"iopub.status.idle": "2025-11-21T13:09:49.211933Z",
|
||||
"shell.execute_reply": "2025-11-21T13:09:49.211382Z",
|
||||
"shell.execute_reply.started": "2025-11-21T13:09:49.032662Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -3537,7 +3537,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"1138\n"
|
||||
"1898\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -3551,7 +3551,7 @@
|
||||
"filename = 'data/天津石化人员2025.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"filename = 'data/marks_20251119.csv'\n",
|
||||
"filename = 'data/marks_20251121.csv'\n",
|
||||
"re_ta = My.get_result(filename,dict1)\n",
|
||||
"\n",
|
||||
"\n",
|
||||
@@ -3623,15 +3623,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"execution_count": 26,
|
||||
"id": "fcb3c816-5260-4807-9536-b8203680ed1c",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-11-19T10:23:38.619220Z",
|
||||
"iopub.status.busy": "2025-11-19T10:23:38.618501Z",
|
||||
"iopub.status.idle": "2025-11-19T10:23:38.645291Z",
|
||||
"shell.execute_reply": "2025-11-19T10:23:38.644881Z",
|
||||
"shell.execute_reply.started": "2025-11-19T10:23:38.619162Z"
|
||||
"iopub.execute_input": "2025-11-21T13:10:04.169431Z",
|
||||
"iopub.status.busy": "2025-11-21T13:10:04.168764Z",
|
||||
"iopub.status.idle": "2025-11-21T13:10:04.215983Z",
|
||||
"shell.execute_reply": "2025-11-21T13:10:04.215442Z",
|
||||
"shell.execute_reply.started": "2025-11-21T13:10:04.169372Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
@@ -3669,7 +3669,7 @@
|
||||
" list2 = [k,v['人数'],v['体测人数']]\n",
|
||||
" list1.append(list2)\n",
|
||||
"\n",
|
||||
"filename = 'data/天津石化部门测试情况(20241119).xlsx'\n",
|
||||
"filename = 'data/天津石化部门测试情况(截至20241121).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
@@ -3679,6 +3679,59 @@
|
||||
"wb.save(filename)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "386e1cf1-74d4-4aad-a228-b30e65ffd710",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 统计未体测人员明细表"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 27,
|
||||
"id": "df8b9405-a2d9-413d-bcf4-205704b0243a",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-11-21T13:10:36.807855Z",
|
||||
"iopub.status.busy": "2025-11-21T13:10:36.807222Z",
|
||||
"iopub.status.idle": "2025-11-21T13:10:37.013652Z",
|
||||
"shell.execute_reply": "2025-11-21T13:10:37.013094Z",
|
||||
"shell.execute_reply.started": "2025-11-21T13:10:36.807795Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import json\n",
|
||||
"import openpyxl\n",
|
||||
"\n",
|
||||
"filename = 'data/result_天津石化2025.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"\n",
|
||||
"filename = 'data/天津石化人员2025.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict2 = json.load(fl)\n",
|
||||
"\n",
|
||||
"list1 = []\n",
|
||||
"\n",
|
||||
"i = 1\n",
|
||||
"for k, v in dict2.items(): \n",
|
||||
" if k not in dict1.keys():\n",
|
||||
" list2 = [i,k,v['name'],v['unit']]\n",
|
||||
" i+=1\n",
|
||||
" list1.append(list2)\n",
|
||||
"#print(list1)\n",
|
||||
"filename = f'data/天津石化未测试人员名单(截至20251121).xlsx'\n",
|
||||
"title = ['序号','员工编号','姓名','部门']\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
"for row in list1:\n",
|
||||
" sheet.append(row) \n",
|
||||
"wb.save(filename)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "85a03b00-9624-4ae9-aa6d-386798d457df",
|
||||
|
||||
Reference in new issue
Block a user