This commit is contained in:
512song committed 2023-10-18 16:04:27 +08:00
1 parent 61fd173804
commit c57e374ebb
2 files changed
+97 -37

No files matched your search

+69 -3
View File
@@ -2195,15 +2195,81 @@
" list1.append(mydata)\n",
" list2.append([k,v['name']])\n",
" i+=1\n",
" x = requests.post('http://192.168.31.163:3003', data = json.dumps(list1), headers=headers)\n",
" #x = requests.post('http://192.168.31.163:3003', data = json.dumps(list1), headers=headers)\n",
" print(id,v['name'],x.text)\n",
" #x.close()\n"
" #x.close()\n",
"print(i)"
]
},
{
"cell_type": "markdown",
"id": "489fdbe1-30ed-4630-b2fa-d926e41bdcc9",
"metadata": {},
"source": [
"## 核对报告人数"
]
},
{
"cell_type": "code",
"execution_count": 191,
"id": "906fa6c6-3446-4176-a443-fe16e52a8a3a",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-18T07:58:05.208288Z",
"iopub.status.busy": "2023-10-18T07:58:05.207897Z",
"iopub.status.idle": "2023-10-18T07:58:05.392471Z",
"shell.execute_reply": "2023-10-18T07:58:05.391914Z",
"shell.execute_reply.started": "2023-10-18T07:58:05.208259Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1736682 刘志勇\n",
"1739548 王小奎\n",
"1739773 赵东健\n",
"1733948 邱仪金\n",
"1738852 陈黎\n",
"1738874 王竫\n",
"1731037 王庆和\n",
"1732087 于晓原\n",
"1731095 张莉英\n",
"1730684 黄金龙\n",
"1730835 李朋\n",
"1730844 董振华\n"
]
}
],
"source": [
"import os,sys,shutil\n",
"import json\n",
"import glob\n",
"from pathlib import Path\n",
"\n",
"fi_path = '/home/songyi/pdf-typescript-old2/134'\n",
"\n",
"fls = glob.glob(f'{fi_path}/*.pdf')\n",
"\n",
"filename = 'data/result_天津231017.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"list1 = []\n",
"for fn in fls:\n",
" fi_name =Path(fn).stem.split('-')[0]\n",
" code = int(fi_name)\n",
" list1.append(str(code))\n",
"for k, v in dict1.items():\n",
" if k not in list1:\n",
" print(k,v['name'])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2b5edd54-acb6-40b6-a7d5-47d3c9d4c15d",
"id": "b455e8e9-cbfc-4d90-8be8-bc10d968e0cf",
"metadata": {},
"outputs": [],
"source": []