20240930
This commit is contained in:
1 parent
c03192efe5
commit
e0bfb443be
4 files changed
+474
-605
No files matched your search
+102
-64
@@ -10,16 +10,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 5,
|
"execution_count": null,
|
||||||
"id": "360f0a97-d73d-43f3-9f7a-0f9582103c82",
|
"id": "360f0a97-d73d-43f3-9f7a-0f9582103c82",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"execution": {
|
|
||||||
"iopub.execute_input": "2024-09-24T09:50:41.703850Z",
|
|
||||||
"iopub.status.busy": "2024-09-24T09:50:41.703095Z",
|
|
||||||
"iopub.status.idle": "2024-09-24T09:50:41.720718Z",
|
|
||||||
"shell.execute_reply": "2024-09-24T09:50:41.719536Z",
|
|
||||||
"shell.execute_reply.started": "2024-09-24T09:50:41.703777Z"
|
|
||||||
},
|
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@@ -53,15 +46,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": 7,
|
||||||
"id": "6ce2cbc7-435a-461c-bdb8-abd9a6962fbc",
|
"id": "6ce2cbc7-435a-461c-bdb8-abd9a6962fbc",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"execution": {
|
"execution": {
|
||||||
"iopub.execute_input": "2024-09-23T09:16:02.614379Z",
|
"iopub.execute_input": "2024-09-30T09:30:45.697441Z",
|
||||||
"iopub.status.busy": "2024-09-23T09:16:02.613463Z",
|
"iopub.status.busy": "2024-09-30T09:30:45.696598Z",
|
||||||
"iopub.status.idle": "2024-09-23T09:16:02.633416Z",
|
"iopub.status.idle": "2024-09-30T09:30:45.721527Z",
|
||||||
"shell.execute_reply": "2024-09-23T09:16:02.632423Z",
|
"shell.execute_reply": "2024-09-30T09:30:45.720414Z",
|
||||||
"shell.execute_reply.started": "2024-09-23T09:16:02.614298Z"
|
"shell.execute_reply.started": "2024-09-30T09:30:45.697358Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -123,8 +116,8 @@
|
|||||||
" dict2 = {'place_id':place_id,'code':dxm,'fn':Path(fn).name}\n",
|
" dict2 = {'place_id':place_id,'code':dxm,'fn':Path(fn).name}\n",
|
||||||
" list2.append(dict2)\n",
|
" list2.append(dict2)\n",
|
||||||
" i +=1\n",
|
" i +=1\n",
|
||||||
"x = mycol.insert_many(list2)\n",
|
"#x = mycol.insert_many(list2)\n",
|
||||||
"print('ok') "
|
"#print('ok') "
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -137,15 +130,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": 10,
|
||||||
"id": "5f665c0f-8d30-4759-b7f8-fb7e13b98efa",
|
"id": "5f665c0f-8d30-4759-b7f8-fb7e13b98efa",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"execution": {
|
"execution": {
|
||||||
"iopub.execute_input": "2024-09-24T06:02:00.787106Z",
|
"iopub.execute_input": "2024-09-30T09:42:48.068065Z",
|
||||||
"iopub.status.busy": "2024-09-24T06:02:00.786300Z",
|
"iopub.status.busy": "2024-09-30T09:42:48.067381Z",
|
||||||
"iopub.status.idle": "2024-09-24T06:02:00.838883Z",
|
"iopub.status.idle": "2024-09-30T09:42:48.099230Z",
|
||||||
"shell.execute_reply": "2024-09-24T06:02:00.838280Z",
|
"shell.execute_reply": "2024-09-30T09:42:48.098146Z",
|
||||||
"shell.execute_reply.started": "2024-09-24T06:02:00.787028Z"
|
"shell.execute_reply.started": "2024-09-30T09:42:48.067999Z"
|
||||||
},
|
},
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
@@ -154,37 +147,37 @@
|
|||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"1 13488820384 0014-舒浩轩.pdf\n",
|
"1 13488820384 0014-舒浩轩.pdf 12429\n",
|
||||||
"2 18612703139 0025-李嘉睿.pdf\n",
|
"2 18612703139 0025-李嘉睿.pdf 12637\n",
|
||||||
"3 13522895654 0003-杨宾.pdf\n",
|
"3 13522895654 0003-杨宾.pdf 12432\n",
|
||||||
"4 13718367043 0012-杨玉芬.pdf\n",
|
"4 13718367043 0012-杨玉芬.pdf 12896\n",
|
||||||
"5 15210713283 0005-王红柳.pdf\n",
|
"5 15210713283 0005-王红柳.pdf 12628\n",
|
||||||
"6 15101087817 0024-茅晴晴.pdf\n",
|
"6 15101087817 0024-茅晴晴.pdf 12489\n",
|
||||||
"7 18810111978 0008-段丽阳.pdf\n",
|
"7 18810111978 0008-段丽阳.pdf 12073\n",
|
||||||
"8 15224991657 0026-郑慧敏.pdf\n",
|
"8 15224991657 0026-郑慧敏.pdf 12467\n",
|
||||||
"9 15210713283 0006-高天蕴.pdf\n",
|
"9 15210713283 0006-高天蕴.pdf 12748\n",
|
||||||
"10 15010699019 0021-董润华.pdf\n",
|
"10 15010699019 0021-董润华.pdf 12609\n",
|
||||||
"11 13671026339 0013-王柱明.pdf\n",
|
"11 13671026339 0013-王柱明.pdf 12749\n",
|
||||||
"12 15551006319 0029-林景平.pdf\n",
|
"12 15551006319 0029-林景平.pdf 12324\n",
|
||||||
"13 13522895654 0004-武馨怡.pdf\n",
|
"13 13522895654 0004-武馨怡.pdf 12762\n",
|
||||||
"14 18660799298 0023-程军妮.pdf\n",
|
"14 18660799298 0023-程军妮.pdf 12745\n",
|
||||||
"15 18233207289 0019-张傲楠.pdf\n",
|
"15 18233207289 0019-张傲楠.pdf 12672\n",
|
||||||
"16 13910932179 0017-朱芷祁.pdf\n",
|
"16 13910932179 0017-朱芷祁.pdf 12621\n",
|
||||||
"17 18210661187 0011-张耀聪.pdf\n",
|
"17 18210661187 0011-张耀聪.pdf 12728\n",
|
||||||
"18 18232370815 0020-尹晓晴.pdf\n",
|
"18 18232370815 0020-尹晓晴.pdf 12890\n",
|
||||||
"19 13426267482 0018-卢浥尘.pdf\n",
|
"19 13426267482 0018-卢浥尘.pdf 12951\n",
|
||||||
"20 13552494958 0031-魏丽.pdf\n",
|
"20 13552494958 0031-魏丽.pdf 12267\n",
|
||||||
"21 13681380585 0007-刘颖.pdf\n",
|
"21 13681380585 0007-刘颖.pdf 12532\n",
|
||||||
"22 13311183808 0016-张玉后.pdf\n",
|
"22 13311183808 0016-张玉后.pdf 12681\n",
|
||||||
"23 18210661187 0001-李雪莉.pdf\n",
|
"23 18210661187 0001-李雪莉.pdf 12531\n",
|
||||||
"24 17665174761 0027-郑文结.pdf\n",
|
"24 17665174761 0027-郑文结.pdf 12502\n",
|
||||||
"25 15588818169 0022-刘小云.pdf\n",
|
"25 15588818169 0022-刘小云.pdf 12758\n",
|
||||||
"26 13011189787 0028-潘妍.pdf\n",
|
"26 13011189787 0028-潘妍.pdf 12314\n",
|
||||||
"27 13770726975 0030-宋元宵.pdf\n",
|
"27 13770726975 0030-宋元宵.pdf 12634\n",
|
||||||
"28 18210661187 0002-张进刚.pdf\n",
|
"28 18210661187 0002-张进刚.pdf 12419\n",
|
||||||
"29 13671271202 0010-范文兰.pdf\n",
|
"29 13671271202 0010-范文兰.pdf 12132\n",
|
||||||
"30 18810111978 0009-段宇辰.pdf\n",
|
"30 18810111978 0009-段宇辰.pdf 12901\n",
|
||||||
"31 13581907290 0015-罗靖卓.pdf\n"
|
"31 13581907290 0015-罗靖卓.pdf 12130\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -196,6 +189,7 @@
|
|||||||
"from tencentcloud.common.profile.http_profile import HttpProfile\n",
|
"from tencentcloud.common.profile.http_profile import HttpProfile\n",
|
||||||
"import json\n",
|
"import json\n",
|
||||||
"import pymongo\n",
|
"import pymongo\n",
|
||||||
|
"import time\n",
|
||||||
"\n",
|
"\n",
|
||||||
"myclient = pymongo.MongoClient('mongodb://localhost:27017/')\n",
|
"myclient = pymongo.MongoClient('mongodb://localhost:27017/')\n",
|
||||||
"mydb = myclient[\"baogao\"]\n",
|
"mydb = myclient[\"baogao\"]\n",
|
||||||
@@ -246,7 +240,7 @@
|
|||||||
" #dict3 = json.loads(resp.to_json_string(indent=2))\n",
|
" #dict3 = json.loads(resp.to_json_string(indent=2))\n",
|
||||||
"\n",
|
"\n",
|
||||||
" #print(v['phone'],dict3['SendStatusSet'][0][\"Message\"])\n",
|
" #print(v['phone'],dict3['SendStatusSet'][0][\"Message\"])\n",
|
||||||
" print(i,v['phone'],v['name'],)\n",
|
" print(i,v['phone'],v['name'], v['code'])\n",
|
||||||
" i+=1\n",
|
" i+=1\n",
|
||||||
" except TencentCloudSDKException as err:\n",
|
" except TencentCloudSDKException as err:\n",
|
||||||
" print(v['phone'],err)"
|
" print(v['phone'],err)"
|
||||||
@@ -262,12 +256,57 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 11,
|
||||||
"id": "4b2b5d76-665f-4dfe-bbd3-5c80abd8c3e3",
|
"id": "4b2b5d76-665f-4dfe-bbd3-5c80abd8c3e3",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"execution": {
|
||||||
|
"iopub.execute_input": "2024-09-30T09:43:30.193404Z",
|
||||||
|
"iopub.status.busy": "2024-09-30T09:43:30.192651Z",
|
||||||
|
"iopub.status.idle": "2024-09-30T09:51:21.935881Z",
|
||||||
|
"shell.execute_reply": "2024-09-30T09:51:21.933878Z",
|
||||||
|
"shell.execute_reply.started": "2024-09-30T09:43:30.193333Z"
|
||||||
|
},
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"13488820384 12429 send success\n",
|
||||||
|
"18612703139 12637 send success\n",
|
||||||
|
"13522895654 12432 send success\n",
|
||||||
|
"13718367043 12896 send success\n",
|
||||||
|
"15210713283 12628 send success\n",
|
||||||
|
"15101087817 12489 send success\n",
|
||||||
|
"18810111978 12073 send success\n",
|
||||||
|
"15224991657 12467 send success\n",
|
||||||
|
"15210713283 12748 send success\n",
|
||||||
|
"15010699019 12609 send success\n",
|
||||||
|
"13671026339 12749 send success\n",
|
||||||
|
"15551006319 12324 send success\n",
|
||||||
|
"13522895654 12762 send success\n",
|
||||||
|
"18660799298 12745 send success\n",
|
||||||
|
"18233207289 12672 send success\n",
|
||||||
|
"13910932179 12621 send success\n",
|
||||||
|
"18210661187 12728 send success\n",
|
||||||
|
"18232370815 12890 send success\n",
|
||||||
|
"13426267482 12951 send success\n",
|
||||||
|
"13552494958 12267 send success\n",
|
||||||
|
"13681380585 12532 send success\n",
|
||||||
|
"13311183808 12681 send success\n",
|
||||||
|
"18210661187 12531 send success\n",
|
||||||
|
"17665174761 12502 send success\n",
|
||||||
|
"15588818169 12758 send success\n",
|
||||||
|
"13011189787 12314 send success\n",
|
||||||
|
"13770726975 12634 send success\n",
|
||||||
|
"18210661187 12419 send success\n",
|
||||||
|
"13671271202 12132 send success\n",
|
||||||
|
"18810111978 12901 send success\n",
|
||||||
|
"13581907290 12130 send success\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"from tencentcloud.common import credential\n",
|
"from tencentcloud.common import credential\n",
|
||||||
"from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\n",
|
"from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\n",
|
||||||
@@ -287,7 +326,7 @@
|
|||||||
"with open(filename,'r') as fl:\n",
|
"with open(filename,'r') as fl:\n",
|
||||||
" dict1 = json.load(fl) \n",
|
" dict1 = json.load(fl) \n",
|
||||||
"dict2 = {}\n",
|
"dict2 = {}\n",
|
||||||
"#place_id = 571315\n",
|
"place_id = 496534\n",
|
||||||
"myquery = { \"place_id\": place_id }\n",
|
"myquery = { \"place_id\": place_id }\n",
|
||||||
"for x in mycol.find(myquery,{ \"_id\": 0, \"place_id\": 0}):\n",
|
"for x in mycol.find(myquery,{ \"_id\": 0, \"place_id\": 0}):\n",
|
||||||
" code = int(x['fn'].split('-')[0])\n",
|
" code = int(x['fn'].split('-')[0])\n",
|
||||||
@@ -325,8 +364,8 @@
|
|||||||
" req.SenderId = \"\"\n",
|
" req.SenderId = \"\"\n",
|
||||||
" resp = client.SendSms(req)\n",
|
" resp = client.SendSms(req)\n",
|
||||||
" dict3 = json.loads(resp.to_json_string(indent=2))\n",
|
" dict3 = json.loads(resp.to_json_string(indent=2))\n",
|
||||||
" print(v['phone'],dict3['SendStatusSet'][0][\"Message\"])\n",
|
" print(v['phone'], v['code'],dict3['SendStatusSet'][0][\"Message\"])\n",
|
||||||
" time.sleep(2)\n",
|
" time.sleep(15)\n",
|
||||||
" except TencentCloudSDKException as err:\n",
|
" except TencentCloudSDKException as err:\n",
|
||||||
" print(v['phone'],err)"
|
" print(v['phone'],err)"
|
||||||
]
|
]
|
||||||
@@ -371,20 +410,19 @@
|
|||||||
"mydb = myclient[\"baogao\"]\n",
|
"mydb = myclient[\"baogao\"]\n",
|
||||||
"mycol = mydb[\"pdf\"]\n",
|
"mycol = mydb[\"pdf\"]\n",
|
||||||
"\n",
|
"\n",
|
||||||
"filename = 'data/北体体质康健.json'\n",
|
"dw_jc = \"天宫院社区测试者\"\n",
|
||||||
|
"filename = 'data/天宫院社区240922.json'\n",
|
||||||
"with open(filename,'r') as fl:\n",
|
"with open(filename,'r') as fl:\n",
|
||||||
" dict1 = json.load(fl) \n",
|
" dict1 = json.load(fl) \n",
|
||||||
"dict2 = {}\n",
|
"dict2 = {}\n",
|
||||||
"#place_id = 571315\n",
|
"place_id = 496534\n",
|
||||||
"myquery = { \"place_id\": place_id,\"rq\":'20240914' }\n",
|
"myquery = { \"place_id\": place_id }\n",
|
||||||
"for x in mycol.find(myquery,{ \"_id\": 0, \"place_id\": 0}):\n",
|
"for x in mycol.find(myquery,{ \"_id\": 0, \"place_id\": 0}):\n",
|
||||||
" code = int(x['fn'].split('-')[0])\n",
|
" code = int(x['fn'].split('-')[0])\n",
|
||||||
" if str(code) in dict1.keys() and 'phone' in dict1[str(code)].keys():\n",
|
" if str(code) in dict1.keys() and 'phone' in dict1[str(code)].keys():\n",
|
||||||
" dict2[code] = {'phone':str(dict1[str(code)]['phone']),'code':x['code'],'name':x['fn']}\n",
|
" dict2[code] = {'phone':str(dict1[str(code)]['phone']),'code':x['code'],'name':x['fn']}\n",
|
||||||
" else:\n",
|
" else:\n",
|
||||||
" print('no phone')\n",
|
" print('no phone')\n",
|
||||||
"#print(dict2)\n",
|
|
||||||
"dw_jc = \"北体体质康健班测试者\"\n",
|
|
||||||
"\n",
|
"\n",
|
||||||
"phone = '+86'+'18854609676'\n",
|
"phone = '+86'+'18854609676'\n",
|
||||||
"yzm = '13306'\n",
|
"yzm = '13306'\n",
|
||||||
|
|||||||
+9
-102
@@ -10,27 +10,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": null,
|
||||||
"id": "a03a5289-9766-4a60-9d38-245deb2ee4e6",
|
"id": "a03a5289-9766-4a60-9d38-245deb2ee4e6",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"execution": {
|
|
||||||
"iopub.execute_input": "2024-09-23T08:54:21.300838Z",
|
|
||||||
"iopub.status.busy": "2024-09-23T08:54:21.300070Z",
|
|
||||||
"iopub.status.idle": "2024-09-23T08:54:21.477586Z",
|
|
||||||
"shell.execute_reply": "2024-09-23T08:54:21.476575Z",
|
|
||||||
"shell.execute_reply.started": "2024-09-23T08:54:21.300765Z"
|
|
||||||
},
|
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"ok\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"import openpyxl\n",
|
"import openpyxl\n",
|
||||||
"import json\n",
|
"import json\n",
|
||||||
@@ -147,28 +132,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": null,
|
||||||
"id": "db39190f-47d4-4a7c-b727-c79e2a64452f",
|
"id": "db39190f-47d4-4a7c-b727-c79e2a64452f",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"execution": {
|
|
||||||
"iopub.execute_input": "2024-09-23T08:55:23.555758Z",
|
|
||||||
"iopub.status.busy": "2024-09-23T08:55:23.554865Z",
|
|
||||||
"iopub.status.idle": "2024-09-23T08:55:23.569912Z",
|
|
||||||
"shell.execute_reply": "2024-09-23T08:55:23.568888Z",
|
|
||||||
"shell.execute_reply.started": "2024-09-23T08:55:23.555680Z"
|
|
||||||
},
|
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"31\n",
|
|
||||||
"31\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"import json\n",
|
"import json\n",
|
||||||
"import time\n",
|
"import time\n",
|
||||||
@@ -217,27 +186,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 3,
|
"execution_count": null,
|
||||||
"id": "590775c3-16ef-43ad-99a2-85e847fe4079",
|
"id": "590775c3-16ef-43ad-99a2-85e847fe4079",
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"execution": {
|
"outputs": [],
|
||||||
"iopub.execute_input": "2024-09-23T08:57:30.916080Z",
|
|
||||||
"iopub.status.busy": "2024-09-23T08:57:30.915319Z",
|
|
||||||
"iopub.status.idle": "2024-09-23T08:57:30.930835Z",
|
|
||||||
"shell.execute_reply": "2024-09-23T08:57:30.929793Z",
|
|
||||||
"shell.execute_reply.started": "2024-09-23T08:57:30.916010Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"31\n",
|
|
||||||
"31\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"import json\n",
|
"import json\n",
|
||||||
"import time\n",
|
"import time\n",
|
||||||
@@ -293,57 +245,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": null,
|
||||||
"id": "c2ee2c71-7e28-4201-af85-ed7f001c6872",
|
"id": "c2ee2c71-7e28-4201-af85-ed7f001c6872",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"execution": {
|
|
||||||
"iopub.execute_input": "2024-09-23T08:58:27.504156Z",
|
|
||||||
"iopub.status.busy": "2024-09-23T08:58:27.503390Z",
|
|
||||||
"iopub.status.idle": "2024-09-23T08:58:27.530165Z",
|
|
||||||
"shell.execute_reply": "2024-09-23T08:58:27.529383Z",
|
|
||||||
"shell.execute_reply.started": "2024-09-23T08:58:27.504064Z"
|
|
||||||
},
|
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"31 魏丽\n",
|
|
||||||
"1 李雪莉\n",
|
|
||||||
"2 张进刚\n",
|
|
||||||
"3 杨宾\n",
|
|
||||||
"4 武馨怡\n",
|
|
||||||
"6 高天蕴\n",
|
|
||||||
"5 王红柳\n",
|
|
||||||
"7 刘颖\n",
|
|
||||||
"8 段丽阳\n",
|
|
||||||
"9 段宇辰\n",
|
|
||||||
"10 范文兰\n",
|
|
||||||
"11 张耀聪\n",
|
|
||||||
"12 杨玉芬\n",
|
|
||||||
"13 王柱明\n",
|
|
||||||
"14 舒浩轩\n",
|
|
||||||
"15 罗靖卓\n",
|
|
||||||
"16 张玉后\n",
|
|
||||||
"17 朱芷祁\n",
|
|
||||||
"18 卢浥尘\n",
|
|
||||||
"19 张傲楠\n",
|
|
||||||
"20 尹晓晴\n",
|
|
||||||
"21 董润华\n",
|
|
||||||
"22 刘小云\n",
|
|
||||||
"23 程军妮\n",
|
|
||||||
"24 茅晴晴\n",
|
|
||||||
"25 李嘉睿\n",
|
|
||||||
"26 郑慧敏\n",
|
|
||||||
"27 郑文结\n",
|
|
||||||
"28 潘妍\n",
|
|
||||||
"29 林景平\n",
|
|
||||||
"30 宋元宵\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"import json\n",
|
"import json\n",
|
||||||
"import openpyxl\n",
|
"import openpyxl\n",
|
||||||
|
|||||||
+344
-419
File diff suppressed because it is too large.
Load diff
+19
-20
@@ -4,7 +4,6 @@
|
|||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "55644860-57e6-466b-b6e9-e6fdd807498d",
|
"id": "55644860-57e6-466b-b6e9-e6fdd807498d",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"jp-MarkdownHeadingCollapsed": true,
|
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
"source": [
|
"source": [
|
||||||
@@ -2367,15 +2366,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": 3,
|
||||||
"id": "1e2d586e-6ff5-4fd1-a909-278d23e54561",
|
"id": "1e2d586e-6ff5-4fd1-a909-278d23e54561",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"execution": {
|
"execution": {
|
||||||
"iopub.execute_input": "2024-09-29T02:18:02.228980Z",
|
"iopub.execute_input": "2024-09-29T05:14:10.446230Z",
|
||||||
"iopub.status.busy": "2024-09-29T02:18:02.228201Z",
|
"iopub.status.busy": "2024-09-29T05:14:10.445350Z",
|
||||||
"iopub.status.idle": "2024-09-29T02:18:02.253056Z",
|
"iopub.status.idle": "2024-09-29T05:14:10.477950Z",
|
||||||
"shell.execute_reply": "2024-09-29T02:18:02.252599Z",
|
"shell.execute_reply": "2024-09-29T05:14:10.477374Z",
|
||||||
"shell.execute_reply.started": "2024-09-29T02:18:02.228910Z"
|
"shell.execute_reply.started": "2024-09-29T05:14:10.446151Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -2383,8 +2382,8 @@
|
|||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"80\n",
|
"212\n",
|
||||||
"80\n"
|
"212\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -2403,7 +2402,7 @@
|
|||||||
"re_ta = {}\n",
|
"re_ta = {}\n",
|
||||||
"dict1 = {}\n",
|
"dict1 = {}\n",
|
||||||
"list1 = []\n",
|
"list1 = []\n",
|
||||||
"filename = 'data/湖南石化青年体质检测.json'\n",
|
"filename = 'data/长炼医院人员2024.json'\n",
|
||||||
"with open(filename,'r') as fl:\n",
|
"with open(filename,'r') as fl:\n",
|
||||||
" dict1 = json.load(fl) \n",
|
" dict1 = json.load(fl) \n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -2428,7 +2427,7 @@
|
|||||||
" score = int(result[4])/item[m_item]['divisor'] \n",
|
" score = int(result[4])/item[m_item]['divisor'] \n",
|
||||||
" re_ta[user][item_name]['成绩'] = f'{score} {item[m_item][\"unit\"]}'\n",
|
" re_ta[user][item_name]['成绩'] = f'{score} {item[m_item][\"unit\"]}'\n",
|
||||||
"print(len(re_ta))\n",
|
"print(len(re_ta))\n",
|
||||||
"filename = 'data/result_湖南石化青年体质检测.json'\n",
|
"filename = 'data/result_长炼医院人员2024.json'\n",
|
||||||
"\n",
|
"\n",
|
||||||
"with open(filename,'w') as fl:\n",
|
"with open(filename,'w') as fl:\n",
|
||||||
" json.dump(re_ta, fl, ensure_ascii=False) \n",
|
" json.dump(re_ta, fl, ensure_ascii=False) \n",
|
||||||
@@ -2445,15 +2444,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": 4,
|
||||||
"id": "64c6e1e3-801c-4573-b78f-5a9e842597a9",
|
"id": "64c6e1e3-801c-4573-b78f-5a9e842597a9",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"execution": {
|
"execution": {
|
||||||
"iopub.execute_input": "2024-09-29T02:18:45.748557Z",
|
"iopub.execute_input": "2024-09-29T05:14:43.182012Z",
|
||||||
"iopub.status.busy": "2024-09-29T02:18:45.748059Z",
|
"iopub.status.busy": "2024-09-29T05:14:43.181450Z",
|
||||||
"iopub.status.idle": "2024-09-29T02:18:45.957948Z",
|
"iopub.status.idle": "2024-09-29T05:14:43.242249Z",
|
||||||
"shell.execute_reply": "2024-09-29T02:18:45.957465Z",
|
"shell.execute_reply": "2024-09-29T05:14:43.241683Z",
|
||||||
"shell.execute_reply.started": "2024-09-29T02:18:45.748511Z"
|
"shell.execute_reply.started": "2024-09-29T05:14:43.181959Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@@ -2464,11 +2463,11 @@
|
|||||||
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||||
"title = ['编号','姓名','性别','单位','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
"title = ['编号','姓名','性别','单位','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||||
"\n",
|
"\n",
|
||||||
"filename = 'data/result_湖南石化青年体质检测.json'\n",
|
"filename = 'data/result_长炼医院人员2024.json'\n",
|
||||||
"with open(filename,'r') as fl:\n",
|
"with open(filename,'r') as fl:\n",
|
||||||
" dict1 = json.load(fl)\n",
|
" dict1 = json.load(fl)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"filename = 'data/湖南石化青年体质检测.json'\n",
|
"filename = 'data/长炼医院人员2024.json'\n",
|
||||||
"with open(filename,'r') as fl:\n",
|
"with open(filename,'r') as fl:\n",
|
||||||
" dict2 = json.load(fl)\n",
|
" dict2 = json.load(fl)\n",
|
||||||
" \n",
|
" \n",
|
||||||
@@ -2488,7 +2487,7 @@
|
|||||||
" else:\n",
|
" else:\n",
|
||||||
" list2.append('') \n",
|
" list2.append('') \n",
|
||||||
" list1.append(list2)\n",
|
" list1.append(list2)\n",
|
||||||
"filename = 'data/湖南石化青年体质检测情况表(20240720).xlsx'\n",
|
"filename = 'data/长炼医院人员检测情况表(20240720).xlsx'\n",
|
||||||
"wb = openpyxl.Workbook()\n",
|
"wb = openpyxl.Workbook()\n",
|
||||||
"sheet = wb.active\n",
|
"sheet = wb.active\n",
|
||||||
"sheet.append(title)\n",
|
"sheet.append(title)\n",
|
||||||
|
|||||||
Reference in new issue
Block a user