From 72a94b8de306e02c5bce996d44f03bcd7188ed99 Mon Sep 17 00:00:00 2001 From: 512song Date: Tue, 23 Dec 2025 20:05:54 +0800 Subject: [PATCH] 20251223 --- 体测单位/东营老年大学.ipynb | 70 ++++++++-------- 体测单位/北海炼化.ipynb | 154 +++++++++++++++++++++++++++++++++++- 体测单位/宁夏能化.ipynb | 4 +- 3 files changed, 188 insertions(+), 40 deletions(-) diff --git a/体测单位/东营老年大学.ipynb b/体测单位/东营老年大学.ipynb index 6ec0866..0fdd9e7 100644 --- a/体测单位/东营老年大学.ipynb +++ b/体测单位/东营老年大学.ipynb @@ -118,15 +118,15 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 30, "id": "de0185f6-a3ce-4d12-96d5-2d4fd01cf293", "metadata": { "execution": { - "iopub.execute_input": "2025-12-19T03:19:11.165261Z", - "iopub.status.busy": "2025-12-19T03:19:11.164496Z", - "iopub.status.idle": "2025-12-19T03:19:11.195061Z", - "shell.execute_reply": "2025-12-19T03:19:11.194508Z", - "shell.execute_reply.started": "2025-12-19T03:19:11.165190Z" + "iopub.execute_input": "2025-12-23T10:18:36.595255Z", + "iopub.status.busy": "2025-12-23T10:18:36.593650Z", + "iopub.status.idle": "2025-12-23T10:18:36.625071Z", + "shell.execute_reply": "2025-12-23T10:18:36.624500Z", + "shell.execute_reply.started": "2025-12-23T10:18:36.595191Z" } }, "outputs": [ @@ -134,7 +134,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "85\n", + "86\n", "ok\n" ] } @@ -528,15 +528,15 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 31, "id": "b6faa6d3-8237-4e75-9014-a76826ae2c36", "metadata": { "execution": { - "iopub.execute_input": "2025-12-19T03:19:24.207176Z", - "iopub.status.busy": "2025-12-19T03:19:24.206625Z", - "iopub.status.idle": "2025-12-19T03:19:24.227876Z", - "shell.execute_reply": "2025-12-19T03:19:24.226944Z", - "shell.execute_reply.started": "2025-12-19T03:19:24.207123Z" + "iopub.execute_input": "2025-12-23T10:18:56.022972Z", + "iopub.status.busy": "2025-12-23T10:18:56.022396Z", + "iopub.status.idle": "2025-12-23T10:18:56.043484Z", + "shell.execute_reply": "2025-12-23T10:18:56.042689Z", + "shell.execute_reply.started": "2025-12-23T10:18:56.022920Z" } }, "outputs": [ @@ -544,7 +544,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "59\n" + "60\n" ] } ], @@ -615,15 +615,15 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 32, "id": "c3b99428-00d5-45ea-9803-261194525fa4", "metadata": { "execution": { - "iopub.execute_input": "2025-12-19T03:19:29.967201Z", - "iopub.status.busy": "2025-12-19T03:19:29.966497Z", - "iopub.status.idle": "2025-12-19T03:19:29.983427Z", - "shell.execute_reply": "2025-12-19T03:19:29.982437Z", - "shell.execute_reply.started": "2025-12-19T03:19:29.967135Z" + "iopub.execute_input": "2025-12-23T10:19:05.006810Z", + "iopub.status.busy": "2025-12-23T10:19:05.005842Z", + "iopub.status.idle": "2025-12-23T10:19:05.025099Z", + "shell.execute_reply": "2025-12-23T10:19:05.024096Z", + "shell.execute_reply.started": "2025-12-23T10:19:05.006757Z" } }, "outputs": [ @@ -631,7 +631,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "ok! 59\n" + "ok! 60\n" ] } ], @@ -1140,15 +1140,15 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 33, "id": "0ba2e1a3-78c8-44d9-ab7d-b17b52b0a99f", "metadata": { "execution": { - "iopub.execute_input": "2025-12-19T03:19:45.959079Z", - "iopub.status.busy": "2025-12-19T03:19:45.958247Z", - "iopub.status.idle": "2025-12-19T03:19:45.990040Z", - "shell.execute_reply": "2025-12-19T03:19:45.989559Z", - "shell.execute_reply.started": "2025-12-19T03:19:45.959012Z" + "iopub.execute_input": "2025-12-23T10:19:39.624483Z", + "iopub.status.busy": "2025-12-23T10:19:39.623842Z", + "iopub.status.idle": "2025-12-23T10:19:39.741444Z", + "shell.execute_reply": "2025-12-23T10:19:39.740881Z", + "shell.execute_reply.started": "2025-12-23T10:19:39.624425Z" } }, "outputs": [ @@ -1156,7 +1156,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "59\n" + "60\n" ] } ], @@ -1420,15 +1420,15 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 34, "id": "7ee80847-2bc0-4cbe-9534-c5dcf97c2833", "metadata": { "execution": { - "iopub.execute_input": "2025-12-19T03:19:56.159337Z", - "iopub.status.busy": "2025-12-19T03:19:56.157645Z", - "iopub.status.idle": "2025-12-19T03:20:30.404540Z", - "shell.execute_reply": "2025-12-19T03:20:30.403593Z", - "shell.execute_reply.started": "2025-12-19T03:19:56.159261Z" + "iopub.execute_input": "2025-12-23T10:20:27.029215Z", + "iopub.status.busy": "2025-12-23T10:20:27.028578Z", + "iopub.status.idle": "2025-12-23T10:21:01.636388Z", + "shell.execute_reply": "2025-12-23T10:21:01.635153Z", + "shell.execute_reply.started": "2025-12-23T10:20:27.029156Z" } }, "outputs": [ @@ -1436,7 +1436,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "59\n" + "60\n" ] } ], diff --git a/体测单位/北海炼化.ipynb b/体测单位/北海炼化.ipynb index cff72c7..ed99128 100644 --- a/体测单位/北海炼化.ipynb +++ b/体测单位/北海炼化.ipynb @@ -2056,9 +2056,7 @@ { "cell_type": "markdown", "id": "a51dadfb-30e7-40f3-a437-321aa986a10f", - "metadata": { - "jp-MarkdownHeadingCollapsed": true - }, + "metadata": {}, "source": [ "# 北海体检情况汇总" ] @@ -2162,6 +2160,152 @@ "wb.save(filename) " ] }, + { + "cell_type": "markdown", + "id": "ff38ecf9-0ef5-473e-a253-a29196c00307", + "metadata": {}, + "source": [ + "## 统计北海APP用户信息" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "5049ac44-3bf8-4759-8e1a-3345cc0bedf6", + "metadata": { + "execution": { + "iopub.execute_input": "2025-12-23T11:34:46.322569Z", + "iopub.status.busy": "2025-12-23T11:34:46.322137Z", + "iopub.status.idle": "2025-12-23T11:34:46.342939Z", + "shell.execute_reply": "2025-12-23T11:34:46.342438Z", + "shell.execute_reply.started": "2025-12-23T11:34:46.322545Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "张伟 18419216343\n", + "李辉 18278953177\n", + "刘涛 18066959139\n", + "陈伟 13977908579\n", + "沈鹏 13877945246\n", + "王勇 13006999505\n", + "李华 13949350582\n", + "赵敏 13977996075\n", + "张健 15278902286\n", + "王勇 13397798753\n", + "兰俊 13000000400\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']= str(item['mobile'])\n", + " dict2[id] ['unit']= item['dept']\n", + " dict2[id] ['birth']= item['birthday']\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" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "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" + } + }, + "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" + ] + } + ], + "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['2024']\n", + "\n", + "list2 = []\n", + "for n in range(2, sheet.max_row+1):\n", + " name = sheet.cell(n, 2).value\n", + " phone = str(sheet.cell(n, 6).value)\n", + " for k,v in dict2.items():\n", + " if v['name'] ==name and v['phone']== phone:\n", + " list2.append(str(sheet.cell(n, 1).value))\n", + "for n in range(2, sheet.max_row+1):\n", + " code = str(sheet.cell(n, 1).value)\n", + " name = sheet.cell(n, 2).value\n", + " phone = str(sheet.cell(n, 6).value)\n", + " if code not in list2:\n", + " for k,v in dict2.items():\n", + " if v['name'] ==name and v['phone']!= phone:\n", + " print(code,v['name'],phone,v['phone'],v['birth'])" + ] + }, { "cell_type": "markdown", "id": "76c5c17a-462d-4a7b-95a5-6b895f5a25dc", @@ -3027,7 +3171,9 @@ { "cell_type": "markdown", "id": "75ee44f4-2874-44eb-b071-7666f52a60f1", - "metadata": {}, + "metadata": { + "jp-MarkdownHeadingCollapsed": true + }, "source": [ "# 2025年体质检测" ] diff --git a/体测单位/宁夏能化.ipynb b/体测单位/宁夏能化.ipynb index ecf50fc..29e03a2 100644 --- a/体测单位/宁夏能化.ipynb +++ b/体测单位/宁夏能化.ipynb @@ -3,7 +3,9 @@ { "cell_type": "markdown", "id": "a3a2e21f-e62e-465b-818d-8acea289434f", - "metadata": {}, + "metadata": { + "jp-MarkdownHeadingCollapsed": true + }, "source": [ "# 体质检测" ]