This commit is contained in:
512song committed 2025-06-19 14:11:24 +08:00
1 parent 0914ff206a
commit 926edeed0a
2 files changed
+36 -46

No files matched your search

+3 -19
View File
@@ -391,26 +391,10 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": null,
"id": "d6498431-2103-4d27-bba9-f1669b710361",
"metadata": {
"execution": {
"iopub.execute_input": "2025-06-17T11:21:43.905654Z",
"iopub.status.busy": "2025-06-17T11:21:43.904857Z",
"iopub.status.idle": "2025-06-17T11:21:44.018679Z",
"shell.execute_reply": "2025-06-17T11:21:44.018190Z",
"shell.execute_reply.started": "2025-06-17T11:21:43.905567Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"('345321','2020306','pushup','35','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019543','pushup','25','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020251','pushup','30','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019404','pushup','30','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3497975','pushup','10','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3391661','pushup','12','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020276','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019920','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3437943','pushup','10','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019386','pushup','11','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020327','pushup','18','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','214326','pushup','24','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020145','pushup','28','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020085','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019116','pushup','22','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020147','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019161','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020242','pushup','18','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2018957','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019109','pushup','30','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019182','pushup','22','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3438918','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019106','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2018735','pushup','5','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020493','pushup','6','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019700','pushup','10','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019632','pushup','22','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3418306','pushup','10','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2018851','pushup','10','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019616','pushup','35','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019663','pushup','40','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019586','pushup','40','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3437940','pushup','16','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020400','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019169','pushup','10','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019665','pushup','21','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3425485','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3425493','pushup','22','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020359','pushup','30','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3391640','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3533353','pushup','40','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2018733','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3497916','pushup','21','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2018895','pushup','21','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3434772','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3418271','pushup','30','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020029','pushup','11','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020171','pushup','10','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3497913','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3391664','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020504','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3394991','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019132','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020155','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020086','pushup','18','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3497933','pushup','35','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3437961','pushup','11','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','3497935','pushup','20','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2020168','pushup','15','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2018658','pushup','25','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019168','pushup','25','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2019646','pushup','30','2025-06-16','2025-06-17 19:30:00.000 +0800'),('345321','2018737','pushup','22','Line truncated
]
}
],
"metadata": {},
"outputs": [],
"source": [
"import openpyxl\n",
"import json\n",
+33 -27
View File
@@ -10,15 +10,15 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 9,
"id": "bbba6efc-73cd-4db6-bae7-014724fee731",
"metadata": {
"execution": {
"iopub.execute_input": "2025-06-18T01:38:09.178999Z",
"iopub.status.busy": "2025-06-18T01:38:09.178385Z",
"iopub.status.idle": "2025-06-18T01:38:09.588567Z",
"shell.execute_reply": "2025-06-18T01:38:09.588050Z",
"shell.execute_reply.started": "2025-06-18T01:38:09.178942Z"
"iopub.execute_input": "2025-06-19T04:09:25.167271Z",
"iopub.status.busy": "2025-06-19T04:09:25.166662Z",
"iopub.status.idle": "2025-06-19T04:09:25.402923Z",
"shell.execute_reply": "2025-06-19T04:09:25.402331Z",
"shell.execute_reply.started": "2025-06-19T04:09:25.167211Z"
},
"tags": []
},
@@ -47,8 +47,14 @@
" dict1 = {}\n",
" dict1['name'] = sheet.cell(n, 3).value\n",
" dict1['sex'] = sheet.cell(n, 4).value\n",
" dict1['unit'] = sheet.cell(n, 9).value\n",
" unit = sheet.cell(n, 9).value\n",
" \n",
" dict1['sub_unit'] = sheet.cell(n, 6).value\n",
" if unit == '管理部门':\n",
" dict1['unit'] = sheet.cell(n, 6).value\n",
" else:\n",
" dict1['unit'] = sheet.cell(n, 9).value\n",
" \n",
" dict1['birth'] = sheet.cell(n,5).value\n",
" person[code] = dict1\n",
"filename = 'data/宁夏能化人员.json'\n",
@@ -105,15 +111,15 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 10,
"id": "970e171e-1360-448f-a28c-520ccb8f314a",
"metadata": {
"execution": {
"iopub.execute_input": "2025-06-18T01:40:54.605859Z",
"iopub.status.busy": "2025-06-18T01:40:54.605169Z",
"iopub.status.idle": "2025-06-18T01:40:54.711625Z",
"shell.execute_reply": "2025-06-18T01:40:54.711049Z",
"shell.execute_reply.started": "2025-06-18T01:40:54.605797Z"
"iopub.execute_input": "2025-06-19T04:10:33.526593Z",
"iopub.status.busy": "2025-06-19T04:10:33.525876Z",
"iopub.status.idle": "2025-06-19T04:10:33.640312Z",
"shell.execute_reply": "2025-06-19T04:10:33.639700Z",
"shell.execute_reply.started": "2025-06-19T04:10:33.526529Z"
},
"tags": []
},
@@ -136,7 +142,7 @@
"filename = 'data/宁夏能化人员.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"filename = 'data/marks_20250618.csv'\n",
"filename = 'data/marks_20250619.csv'\n",
"re_ta = My.get_result(filename,dict1)\n",
"\n",
"\n",
@@ -156,15 +162,15 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 11,
"id": "0905ad6a-f7e4-43ed-ae29-c4850deb946b",
"metadata": {
"execution": {
"iopub.execute_input": "2025-06-18T01:41:01.815005Z",
"iopub.status.busy": "2025-06-18T01:41:01.814285Z",
"iopub.status.idle": "2025-06-18T01:41:01.908319Z",
"shell.execute_reply": "2025-06-18T01:41:01.907777Z",
"shell.execute_reply.started": "2025-06-18T01:41:01.814939Z"
"iopub.execute_input": "2025-06-19T04:10:36.891162Z",
"iopub.status.busy": "2025-06-19T04:10:36.890453Z",
"iopub.status.idle": "2025-06-19T04:10:36.986179Z",
"shell.execute_reply": "2025-06-19T04:10:36.985655Z",
"shell.execute_reply.started": "2025-06-19T04:10:36.891096Z"
}
},
"outputs": [
@@ -476,15 +482,15 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 14,
"id": "23ffd115-72a3-4f90-9e64-ffa6420df8a4",
"metadata": {
"execution": {
"iopub.execute_input": "2025-06-18T01:49:13.699255Z",
"iopub.status.busy": "2025-06-18T01:49:13.698689Z",
"iopub.status.idle": "2025-06-18T02:04:11.786609Z",
"shell.execute_reply": "2025-06-18T02:04:11.785557Z",
"shell.execute_reply.started": "2025-06-18T01:49:13.699200Z"
"iopub.execute_input": "2025-06-19T04:34:04.657964Z",
"iopub.status.busy": "2025-06-19T04:34:04.657683Z",
"iopub.status.idle": "2025-06-19T04:48:50.472054Z",
"shell.execute_reply": "2025-06-19T04:48:50.471179Z",
"shell.execute_reply.started": "2025-06-19T04:34:04.657939Z"
}
},
"outputs": [
@@ -519,7 +525,7 @@
" \n",
" id = str(k).rjust(4,\"0\")\n",
" mydata['path'] = file_path+id+'-'+ v['name']+'.pdf'\n",
" mydata['title'] = '中国石化长城能源化工(宁夏)有限公司'\n",
" mydata['title'] = '中石化宁夏能化公司'\n",
" mydata['subtitle'] = v['unit']\n",
" mydata['id'] = id\n",
" mydata['name'] = v['name']\n",