20240626
This commit is contained in:
1 parent
c3bc3437f0
commit
eebd54180b
6 files changed
+7392
-1218
No files matched your search
+96
-82
@@ -564,90 +564,12 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 69,
|
||||
"execution_count": null,
|
||||
"id": "37e24019-9b79-4748-ae6a-2bdb6052862d",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-03-24T08:04:28.111191Z",
|
||||
"iopub.status.busy": "2024-03-24T08:04:28.110709Z",
|
||||
"iopub.status.idle": "2024-03-24T08:04:28.151253Z",
|
||||
"shell.execute_reply": "2024-03-24T08:04:28.149811Z",
|
||||
"shell.execute_reply.started": "2024-03-24T08:04:28.111154Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"13375466638 1 13375466638\n",
|
||||
"13589432668 2 13589432668\n",
|
||||
"13054619993 3 13054619993\n",
|
||||
"18554686537 4 18554686537\n",
|
||||
"15805460500 5 15805460500\n",
|
||||
"13705468382 6 13705468382\n",
|
||||
"18654618688 7 18654618688\n",
|
||||
"13505466886 9 13505466886\n",
|
||||
"13361529316 10 13361529316\n",
|
||||
"18654605758 11 18654605758\n",
|
||||
"13963369251 12 13963369251\n",
|
||||
"13854666193 13 13854666193\n",
|
||||
"13963381767 14 13963381767\n",
|
||||
"13562277783 15 13562277783\n",
|
||||
"13854664965 16 13854664965\n",
|
||||
"18506464679 17 18506464679\n",
|
||||
"18865467010 18 18865467010\n",
|
||||
"18505460998 19 18505460998\n",
|
||||
"15266083778 20 15266083778\n",
|
||||
"15865469239 21 15865469239\n",
|
||||
"15154607897 22 15154607897\n",
|
||||
"13963359091 23 13963359091\n",
|
||||
"13685469953 24 13685469953\n",
|
||||
"18615463569 25 18615463569\n",
|
||||
"13518666896 27 13518666896\n",
|
||||
"13668615983 28 13668615983\n",
|
||||
"13562269069 29 13562269069\n",
|
||||
"15066075216 30 15066075216\n",
|
||||
"18754687658 31 18754687658\n",
|
||||
"13668618731 32 18254610712\n",
|
||||
"15552721566 33 15552721566\n",
|
||||
"18678690907 34 18678690907\n",
|
||||
"13082610996 35 13082610996\n",
|
||||
"13563351026 36 13563351026\n",
|
||||
"13506369296 37 13506369296\n",
|
||||
"13589986263 38 13589986263\n",
|
||||
"13589996697 39 13589996697\n",
|
||||
"18905465618 40 18905465618\n",
|
||||
"18954035397 41 18954035397\n",
|
||||
"13906472659 42 13906472659\n",
|
||||
"15618032716 43 15618032716\n",
|
||||
"18661382930 44 18661382930\n",
|
||||
"13505465335 45 13505465335\n",
|
||||
"13854622388 47 13854622388\n",
|
||||
"13589961161 48 13589961161\n",
|
||||
"18860657259 49 18860657259\n",
|
||||
"13963358011 50 13963358011\n",
|
||||
"13605466080 51 13605466080\n",
|
||||
"13505461565 53 13505461565\n",
|
||||
"15550539718 54 15550539718\n",
|
||||
"15698085191 55 15698985191\n",
|
||||
"18562110866 56 1856210866\n",
|
||||
"13376472932 58 13376472932\n",
|
||||
"18653690626 59 18653690626\n",
|
||||
"13515466253 60 13515466253\n",
|
||||
"13054652092 61 13054652092\n",
|
||||
"13280380156 62 13280380156\n",
|
||||
"18254621588 63 18254621588\n",
|
||||
"13854620482 65 13854620482\n",
|
||||
"13376473932 66 13376473932\n",
|
||||
"18654335533 67 18654335533\n",
|
||||
"16605466518 68 16605466518\n",
|
||||
"13706364787 69 13706364787\n",
|
||||
"ok\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import openpyxl\n",
|
||||
"import json\n",
|
||||
@@ -677,10 +599,102 @@
|
||||
"print('ok')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "7ac62aed-6256-4bd2-a563-5f6e34504121",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 核对人员手机号码"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "26ef04ee-fdf4-40de-a3ed-30cba6525f06",
|
||||
"id": "42b7cd7d-3446-4abf-91f2-c85d447231e9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import openpyxl\n",
|
||||
"import json\n",
|
||||
"from datetime import date\n",
|
||||
"\n",
|
||||
"filename = 'data/东营老年大学.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"\n",
|
||||
"\n",
|
||||
"wb = openpyxl.load_workbook('data/6.20日北体花名册.xlsx')\n",
|
||||
"sheet = wb.active\n",
|
||||
"# sheets = wb.sheetnames\n",
|
||||
"dict2 = {}\n",
|
||||
"\n",
|
||||
"for n in range(3, sheet.max_row+1):\n",
|
||||
" phone = int(sheet.cell(n, 3).value)\n",
|
||||
" \n",
|
||||
" dict2[phone] = sheet.cell(n, 2).value\n",
|
||||
"i = 1\n",
|
||||
"for k, v in dict1.items():\n",
|
||||
" if 'phone' in v.keys() and v['phone'] in dict2.keys() :\n",
|
||||
" print(i,v['name'],dict2[v['phone']])\n",
|
||||
" i+=1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 20,
|
||||
"id": "bd4b91e9-289c-4f21-aab6-846b5f98c493",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-24T01:27:12.789785Z",
|
||||
"iopub.status.busy": "2024-06-24T01:27:12.788991Z",
|
||||
"iopub.status.idle": "2024-06-24T01:27:12.935728Z",
|
||||
"shell.execute_reply": "2024-06-24T01:27:12.935118Z",
|
||||
"shell.execute_reply.started": "2024-06-24T01:27:12.789716Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"刘明岐\n",
|
||||
"{13375466638: '刘秀清', 13589432668: '赵福珍', 13054619993: '王玉秀', 18554686537: '陈静', 15805460500: '王建红', 13705468382: '丁寿亭', 18654618688: '扈继梅', '18905463888': '崔建民', 13505466886: '郝桂荣', 13361529316: '许兴华', 18654605758: '李新建', 13963369251: '王秀娥', 13854666193: '胡希茹', 13963381767: '曹玉松', 13562277783: '王华奎', 13854664965: '刘学农', 18506464679: '缪新军', 18865467010: '刘汝香', 18505460998: '胡建营', 15266083778: '张玉芹', 15865469239: '刘晋秀', 15154607897: '赵庆芬', 13963359091: '李新国', 13685469953: '王巧云', 18615463569: '李克杰', '13054610560': '马国丽', 13518666896: '刘国明', 13668615983: '李泽国', 13562269069: '邓文霞', 15066075216: '李长君', 18754687658: '王占敏', 13668618731: '刘晓芳', 15552721566: '乔晓雪', 18678690907: '杨学荣', 13082610996: '张德全', 13563351026: '李承俊', 13506369296: '王新玲', 13589986263: '赵立生', 13589996697: '李钦德', 18905465618: '刘其科', 18954035397: '刘建兴', 13906472659: '尚国勋', 15618032716: '林娟', 18661382930: '朱玉良', 13505465335: '邱永明', '13012914968': '赵玉环', 13854622388: '周敏', 13589961161: '许明', 18860657259: '王芳红', 13963358011: '刘兆作', 13605466080: '薛永华', '13280370107': '于敏', 13505461565: '胡建忠', 15550539718: '南莉莉', 15698085191: '刘明岐', 18562110866: '劳玉霞', '18866683285': '张金凤', 13376472932: '王本学', 18653690626: '李萍', 13515466253: '成桂艳', 13054652092: '卢霞', 13280380156: '肖东炎', 18254621588: '黄广红', '15216470927': '李爱萍', 13854620482: '王玉芹', 13376473932: '宋玉香', 18654335533: '刘明华', 16605466518: '靳娜', 13706364787: '李春梅', '13854656568': '吴承军', '13792099139': '宋金乐', '18562022520': '鞠栋', '18605469525': '刘宗敏'}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"%reset -f\n",
|
||||
"\n",
|
||||
"import openpyxl\n",
|
||||
"import json\n",
|
||||
"from datetime import date\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"filename = 'data/东营老年大学.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"\n",
|
||||
"dict2 = {}\n",
|
||||
"for k, v in dict1.items():\n",
|
||||
" if 'phone' in v.keys():\n",
|
||||
" dict2[v['phone']] = v['name']\n",
|
||||
"wb = openpyxl.load_workbook('data/6.20日北体花名册.xlsx')\n",
|
||||
"sheet = wb.active\n",
|
||||
"# sheets = wb.sheetnames\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"for n in range(3, sheet.max_row+1):\n",
|
||||
" phone = int(sheet.cell(n, 3).value)\n",
|
||||
" if phone not in dict2.keys():\n",
|
||||
" print(sheet.cell(n, 2).value)\n",
|
||||
" \n",
|
||||
"print(dict2) "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "d52f6b08-a9dd-47db-a823-791d581e3e6b",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
@@ -702,7 +716,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.10.12"
|
||||
"version": "3.12.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in new issue
Block a user