20251009
This commit is contained in:
1 parent
b2ba8722fa
commit
ac73cd8540
4 files changed
+275
-48
No files matched your search
+77
-28
@@ -3215,15 +3215,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"execution_count": 22,
|
||||
"id": "2d7f5a24-f247-4199-a84d-dcf611dbeef6",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-11-06T09:49:25.694191Z",
|
||||
"iopub.status.busy": "2025-11-06T09:49:25.693476Z",
|
||||
"iopub.status.idle": "2025-11-06T09:49:25.720613Z",
|
||||
"shell.execute_reply": "2025-11-06T09:49:25.719806Z",
|
||||
"shell.execute_reply.started": "2025-11-06T09:49:25.694101Z"
|
||||
"iopub.execute_input": "2025-11-09T03:44:07.995486Z",
|
||||
"iopub.status.busy": "2025-11-09T03:44:07.994757Z",
|
||||
"iopub.status.idle": "2025-11-09T03:44:08.011078Z",
|
||||
"shell.execute_reply": "2025-11-09T03:44:08.010474Z",
|
||||
"shell.execute_reply.started": "2025-11-09T03:44:07.995415Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -3231,12 +3231,8 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"864 杨小波 \n",
|
||||
"865 宋舒波 炼油一部\n",
|
||||
"866 黄耀 公用工程部\n",
|
||||
"867 陈永佳 炼油一部\n",
|
||||
"868 欧阳惠婕 检验计量中心\n",
|
||||
"868 ok\n"
|
||||
"880 熊峰 公用工程部\n",
|
||||
"879 ok\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -3276,15 +3272,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 16,
|
||||
"execution_count": 23,
|
||||
"id": "7b79c7bb-ce87-44b2-95b1-01e9cb66d5f0",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-11-06T09:50:07.068317Z",
|
||||
"iopub.status.busy": "2025-11-06T09:50:07.067538Z",
|
||||
"iopub.status.idle": "2025-11-06T09:50:07.100869Z",
|
||||
"shell.execute_reply": "2025-11-06T09:50:07.100391Z",
|
||||
"shell.execute_reply.started": "2025-11-06T09:50:07.068246Z"
|
||||
"iopub.execute_input": "2025-11-09T03:44:19.407046Z",
|
||||
"iopub.status.busy": "2025-11-09T03:44:19.406684Z",
|
||||
"iopub.status.idle": "2025-11-09T03:44:19.448052Z",
|
||||
"shell.execute_reply": "2025-11-09T03:44:19.447526Z",
|
||||
"shell.execute_reply.started": "2025-11-09T03:44:19.407015Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -3292,7 +3288,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"333\n"
|
||||
"558\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -3306,7 +3302,7 @@
|
||||
"filename = 'data/北海炼化人员2025.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"filename = 'data/marks_20251106.csv'\n",
|
||||
"filename = 'data/marks_20251109.csv'\n",
|
||||
"re_ta = My.get_result(filename,dict1)\n",
|
||||
"\n",
|
||||
"\n",
|
||||
@@ -3326,15 +3322,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 17,
|
||||
"execution_count": 24,
|
||||
"id": "ca079428-2df9-4f15-b141-2c83cd0efaf5",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-11-06T09:50:13.734766Z",
|
||||
"iopub.status.busy": "2025-11-06T09:50:13.734508Z",
|
||||
"iopub.status.idle": "2025-11-06T09:50:13.753135Z",
|
||||
"shell.execute_reply": "2025-11-06T09:50:13.752583Z",
|
||||
"shell.execute_reply.started": "2025-11-06T09:50:13.734739Z"
|
||||
"iopub.execute_input": "2025-11-09T03:44:28.010017Z",
|
||||
"iopub.status.busy": "2025-11-09T03:44:28.009339Z",
|
||||
"iopub.status.idle": "2025-11-09T03:44:28.035577Z",
|
||||
"shell.execute_reply": "2025-11-09T03:44:28.035016Z",
|
||||
"shell.execute_reply.started": "2025-11-09T03:44:28.009952Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
@@ -3372,7 +3368,7 @@
|
||||
" list2 = [k,v['人数'],v['体测人数']]\n",
|
||||
" list1.append(list2)\n",
|
||||
"\n",
|
||||
"filename = 'data/北海炼化部门测试情况(截至20251105).xlsx'\n",
|
||||
"filename = 'data/北海炼化部门测试情况(截至20251109).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
@@ -3382,10 +3378,63 @@
|
||||
"wb.save(filename)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c3df2ac7-1ef3-4f76-a4ed-a2e8f9ecafcc",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 统计未体测人员明细表"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 25,
|
||||
"id": "482a3a46-31a6-433b-88a8-7cad228f853a",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-11-09T03:44:34.970909Z",
|
||||
"iopub.status.busy": "2025-11-09T03:44:34.970151Z",
|
||||
"iopub.status.idle": "2025-11-09T03:44:35.005510Z",
|
||||
"shell.execute_reply": "2025-11-09T03:44:35.005025Z",
|
||||
"shell.execute_reply.started": "2025-11-09T03:44:34.970841Z"
|
||||
}
|
||||
},
|
||||
"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/北海炼化未测试人员名单(截至20251109).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": "code",
|
||||
"execution_count": null,
|
||||
"id": "78f2737d-97e7-4ded-994a-86818119597a",
|
||||
"id": "38024bd4-7d11-43df-956a-a62ee6bf176e",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
|
||||
Reference in new issue
Block a user