20230913
This commit is contained in:
1 parent
e2a1d6724e
commit
73aebed1a1
1 file changed
+47
-1
+47
-1
@@ -781,10 +781,56 @@
|
|||||||
"print(list1)"
|
"print(list1)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"id": "c32bdb5c-d987-4b0f-98e3-9ce4e3ef3671",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"## 核对问卷人员信息"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 4,
|
||||||
|
"id": "c1b187e0-f566-43fa-88d8-090deb9ead19",
|
||||||
|
"metadata": {
|
||||||
|
"execution": {
|
||||||
|
"iopub.execute_input": "2023-09-13T07:58:04.130282Z",
|
||||||
|
"iopub.status.busy": "2023-09-13T07:58:04.129816Z",
|
||||||
|
"iopub.status.idle": "2023-09-13T07:58:04.144786Z",
|
||||||
|
"shell.execute_reply": "2023-09-13T07:58:04.143845Z",
|
||||||
|
"shell.execute_reply.started": "2023-09-13T07:58:04.130228Z"
|
||||||
|
},
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"import json\n",
|
||||||
|
"import csv\n",
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
"filename = 'data/北京农行人员名单2308.json'\n",
|
||||||
|
"with open(filename,'r') as fl:\n",
|
||||||
|
" dict1 = json.load(fl) \n",
|
||||||
|
" \n",
|
||||||
|
"filename = 'data/Survey_20230913.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",
|
||||||
|
" code = str(line[4])\n",
|
||||||
|
" name = line[3]\n",
|
||||||
|
" \n",
|
||||||
|
" if code not in dict1.keys() or name!= dict1[code]['name']:\n",
|
||||||
|
" print(code,name)\n",
|
||||||
|
" \n",
|
||||||
|
" "
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"id": "93d4d513-17ee-4f20-bd86-be52398b5852",
|
"id": "8c89b12a-0ab5-4792-94b6-456e352a00ce",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": []
|
"source": []
|
||||||
|
|||||||
Reference in new issue
Block a user