This commit is contained in:
512song committed 2023-10-23 02:36:43 +00:00
1 parent 626973d224
commit fbfc27add3
2 files changed
+140 -93

No files matched your search

+41 -14
View File
@@ -1252,15 +1252,15 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 24,
"id": "dcdd18b3-d7b7-49b1-b148-c2ea9a7799ff",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-18T04:52:32.821254Z",
"iopub.status.busy": "2023-10-18T04:52:32.820749Z",
"iopub.status.idle": "2023-10-18T04:52:32.885978Z",
"shell.execute_reply": "2023-10-18T04:52:32.885231Z",
"shell.execute_reply.started": "2023-10-18T04:52:32.821208Z"
"iopub.execute_input": "2023-10-23T01:47:20.637431Z",
"iopub.status.busy": "2023-10-23T01:47:20.637008Z",
"iopub.status.idle": "2023-10-23T01:47:20.684289Z",
"shell.execute_reply": "2023-10-23T01:47:20.683177Z",
"shell.execute_reply.started": "2023-10-23T01:47:20.637394Z"
},
"tags": []
},
@@ -1286,7 +1286,7 @@
"wj_dm = {'psy_0556_sh':0,'tcm_0556_sh':1,'spine_0556_sh':2}\n",
"list1 = []\n",
"re_ta = {}\n",
"filename = 'data/Survey_20231018.csv'\n",
"filename = 'data/Survey_20231023.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -1340,15 +1340,15 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 25,
"id": "ea4fffc4-3c6e-4f85-819f-52f969e04dd7",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-18T05:02:18.718756Z",
"iopub.status.busy": "2023-10-18T05:02:18.717923Z",
"iopub.status.idle": "2023-10-18T05:02:18.745164Z",
"shell.execute_reply": "2023-10-18T05:02:18.743072Z",
"shell.execute_reply.started": "2023-10-18T05:02:18.718679Z"
"iopub.execute_input": "2023-10-23T01:48:05.387619Z",
"iopub.status.busy": "2023-10-23T01:48:05.387331Z",
"iopub.status.idle": "2023-10-23T01:48:05.409370Z",
"shell.execute_reply": "2023-10-23T01:48:05.407170Z",
"shell.execute_reply.started": "2023-10-23T01:48:05.387594Z"
},
"tags": []
},
@@ -1406,7 +1406,34 @@
"id": "37bf232e-7db1-40a8-b8d6-4a182f839848",
"metadata": {},
"outputs": [],
"source": []
"source": [
"import json\n",
"import csv\n",
"import openpyxl\n",
"\n",
"filename = 'data/安庆职工健康提升志愿者.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"phone = set()\n",
"phone1 = set()\n",
"for k,v in dict1.items():\n",
" phone.add(v['phone'])\n",
"\n",
"filename = 'data/Survey_20231018.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
" for line in fl:\n",
" #line = re.sub('[\\r\\n\\f ]{1,}', '', line)\n",
" list1.append(line)\n",
"#print(list1)\n",
"for result in list1:\n",
" if result[2] not in phone:\n",
" phone1.add(result[2])\n",
"for item in phone1:\n",
" print(item)"
]
}
],
"metadata": {