20260122
This commit is contained in:
1 parent
72a94b8de3
commit
262b081f94
6 files changed
+958
-650
No files matched your search
+142
-8
@@ -2228,15 +2228,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 16,
|
||||
"execution_count": 25,
|
||||
"id": "865ece6f-2d6f-4ae8-a59d-81e2a4bfbbc3",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-12-23T11:34:51.869483Z",
|
||||
"iopub.status.busy": "2025-12-23T11:34:51.868754Z",
|
||||
"iopub.status.idle": "2025-12-23T11:34:52.535335Z",
|
||||
"shell.execute_reply": "2025-12-23T11:34:52.534820Z",
|
||||
"shell.execute_reply.started": "2025-12-23T11:34:51.869418Z"
|
||||
"iopub.execute_input": "2025-12-24T02:02:10.197143Z",
|
||||
"iopub.status.busy": "2025-12-24T02:02:10.196863Z",
|
||||
"iopub.status.idle": "2025-12-24T02:02:11.056844Z",
|
||||
"shell.execute_reply": "2025-12-24T02:02:11.056232Z",
|
||||
"shell.execute_reply.started": "2025-12-24T02:02:10.197116Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -2255,7 +2255,68 @@
|
||||
"赵敏 13977996075\n",
|
||||
"张健 15278902286\n",
|
||||
"王勇 13397798753\n",
|
||||
"兰俊 13000000400\n"
|
||||
"兰俊 13000000400\n",
|
||||
"2204240005 陈萍 None 13000000021 1963-06-01\n",
|
||||
"2209150130 李晗 18277999575 18207799575 1975-01-09\n",
|
||||
"2209150132 朱康利 None 13000000012 1963-06-01\n",
|
||||
"2209150143 赵亮 18507792069 15389017737 1975-01-08\n",
|
||||
"2209150153 邓洪 18977937260 13977933085 1974-06-05\n",
|
||||
"2209150156 熊泽 18877932561 15151989689 1997-12-01\n",
|
||||
"2209150179 张伟 None 18577900517 1984-10-16\n",
|
||||
"2209150179 张伟 None 18419216343 1996-04-01\n",
|
||||
"2209150180 陈维婧 19377997709 18862762501 1995-08-29\n",
|
||||
"2209150194 梁宇谦 18278053305 17878979398 1998-02-05\n",
|
||||
"2209150200 蔡珍花 None 13000000010 1972-06-01\n",
|
||||
"2209150201 谭海燕 None 13000000011 1973-06-01\n",
|
||||
"2209150236 潘永远 None 13000000009 1962-06-01\n",
|
||||
"2209150249 崔庆鹏 None 16604175267 1996-06-01\n",
|
||||
"2209150315 姜美彤 None 13000000007 1995-06-01\n",
|
||||
"2209150389 彭赫 15930485276 15930485275 1995-10-08\n",
|
||||
"2209150428 默鑫晔 15031137901 13398691539 1999-04-30\n",
|
||||
"2209150432 翟东泽 18779200734 18777920734 1990-10-28\n",
|
||||
"2209150435 汪浩 13006992644 15207705743 1989-04-28\n",
|
||||
"2209150436 黄仁进 13807799565 13977968289 1974-01-17\n",
|
||||
"2209150448 吴海炫 17368152039 18777536133 1999-07-24\n",
|
||||
"2209150460 王振宇 17707790123 18277918788 1981-04-08\n",
|
||||
"2209150479 刘明昆 13707795145 13707795415 1992-04-19\n",
|
||||
"2209150519 黄镇云 18269069766 18269069776 1996-11-25\n",
|
||||
"2209150521 高鹏 15777982048 18730137202 1997-07-03\n",
|
||||
"2209150539 李志良 18634152886 15833247754 1996-11-22\n",
|
||||
"2209150595 沈鹏 None 13572866784 1973-07-12\n",
|
||||
"2209150595 沈鹏 None 13877945246 1976-08-15\n",
|
||||
"2209150597 邹赣荣 17707796656 13907791227 1972-11-16\n",
|
||||
"2209150605 陈伟 None 13977973125 1968-07-01\n",
|
||||
"2209150605 陈伟 None 13977908579 1970-02-19\n",
|
||||
"2209150614 周小林 18077967288 18278950265 1966-07-30\n",
|
||||
"2209150640 蔡耐寒 None 18377975557 1989-08-27\n",
|
||||
"2209150640 蔡耐寒 None 18377975557 1989-08-27\n",
|
||||
"2209150672 李辉 None 13878955359 1976-02-16\n",
|
||||
"2209150672 李辉 None 18278953177 1969-05-31\n",
|
||||
"2209150698 刘涛 None 18907799258 1981-08-18\n",
|
||||
"2209150698 刘涛 None 18066959139 1971-10-24\n",
|
||||
"2209150709 温静 1387795052 13877951052 1977-06-04\n",
|
||||
"2209150718 张健 None 13307795732 1988-12-27\n",
|
||||
"2209150718 张健 None 15278902286 1976-12-23\n",
|
||||
"2209150746 王依然 None 18977944546 1989-01-26\n",
|
||||
"2209150751 谭志坚 None 13000000003 1972-06-01\n",
|
||||
"2209150752 冯剑秋 None 13000000004 1972-06-01\n",
|
||||
"2209150753 龙起燕 None 13000000005 1972-06-01\n",
|
||||
"2209150758 王玮 18077961012 18877951012 1993-10-12\n",
|
||||
"2209190122 黄洁 18907795998 18277919889 1973-01-30\n",
|
||||
"2209190131 王刚 15224535346 15224535345 1978-04-17\n",
|
||||
"2209190146 苏强辉 None 13907791096 1967-06-01\n",
|
||||
"2209190188 王广乾 17677093562 18077966362 1985-03-11\n",
|
||||
"2209190192 廖祁军 18907790417 18907790418 1970-04-01\n",
|
||||
"2209190205 梁艳玲 None 13000000019 1976-06-01\n",
|
||||
"2209190220 宋庆群 None 15063050669 1985-06-01\n",
|
||||
"2209190228 张伟 17880496342 18577900517 1984-10-16\n",
|
||||
"2209190228 张伟 17880496342 18419216343 1996-04-01\n",
|
||||
"2209190234 陈闯 None 13000000016 1967-06-01\n",
|
||||
"2209190235 杜晓卉 None 13000000017 1972-06-01\n",
|
||||
"2209190250 马玲 None 13000000015 1967-06-01\n",
|
||||
"2209190262 杜海惠 None 13000000014 1964-06-01\n",
|
||||
"2210260010 洪元大 None 13000000002 1962-06-01\n",
|
||||
"2210260010 洪元大 None 13000000002 1962-06-01\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -2287,7 +2348,7 @@
|
||||
"wb = openpyxl.load_workbook('data/北海炼化职业体检数据-11.23.xlsx')\n",
|
||||
"#sheet = wb.active\n",
|
||||
"# sheets = wb.sheetnames\n",
|
||||
"sheet = wb['2024']\n",
|
||||
"sheet = wb['2022']\n",
|
||||
"\n",
|
||||
"list2 = []\n",
|
||||
"for n in range(2, sheet.max_row+1):\n",
|
||||
@@ -2306,6 +2367,79 @@
|
||||
" print(code,v['name'],phone,v['phone'],v['birth'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 24,
|
||||
"id": "fb8d59d5-6a1f-45c5-ba82-2620f1cff5ad",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-12-24T02:02:02.690630Z",
|
||||
"iopub.status.busy": "2025-12-24T02:02:02.690140Z",
|
||||
"iopub.status.idle": "2025-12-24T02:02:03.276258Z",
|
||||
"shell.execute_reply": "2025-12-24T02:02:03.275729Z",
|
||||
"shell.execute_reply.started": "2025-12-24T02:02:02.690585Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"995\n",
|
||||
"张伟 18419216343\n",
|
||||
"李辉 18278953177\n",
|
||||
"刘涛 18066959139\n",
|
||||
"陈伟 13977908579\n",
|
||||
"沈鹏 13877945246\n",
|
||||
"王勇 13006999505\n",
|
||||
"李华 13949350582\n",
|
||||
"赵敏 13977996075\n",
|
||||
"张健 15278902286\n",
|
||||
"王勇 13397798753\n",
|
||||
"兰俊 13000000400\n",
|
||||
"涂丽\n",
|
||||
"候海霞\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import json\n",
|
||||
"import openpyxl\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"title = []\n",
|
||||
"\n",
|
||||
"filename = 'data/tb_user.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"list1 = []\n",
|
||||
"dict2 = {}\n",
|
||||
"for item in dict1:\n",
|
||||
" id = item['id']\n",
|
||||
" dict2.setdefault(id,{})\n",
|
||||
" dict2[id] ['name']= item['username']\n",
|
||||
" dict2[id] ['phone']= item['mobile']\n",
|
||||
" dict2[id] ['unit']= item['dept']\n",
|
||||
" dict2[id] ['birth']= item['birthday']\n",
|
||||
"print(len(dict2))\n",
|
||||
"for k,v in dict2.items():\n",
|
||||
" if v['name'] in list1:\n",
|
||||
" print(v['name'],v['phone'])\n",
|
||||
" else:\n",
|
||||
" list1.append(v['name'])\n",
|
||||
"wb = openpyxl.load_workbook('data/北海炼化职业体检数据-11.23.xlsx')\n",
|
||||
"#sheet = wb.active\n",
|
||||
"# sheets = wb.sheetnames\n",
|
||||
"sheet = wb['2022']\n",
|
||||
"\n",
|
||||
"list2 = []\n",
|
||||
"for n in range(2, sheet.max_row+1):\n",
|
||||
" name = sheet.cell(n, 2).value\n",
|
||||
" if name not in (list1):\n",
|
||||
" print(name)\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "76c5c17a-462d-4a7b-95a5-6b895f5a25dc",
|
||||
|
||||
Reference in new issue
Block a user