From 8fcfeafcbd9594e88efec221a57c63bf1e75808b Mon Sep 17 00:00:00 2001 From: haotianmingyue <2421912570@qq.com> Date: Fri, 19 Sep 2025 09:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=90=91=E5=88=86=E7=BB=84?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=E5=8D=95=E4=B8=AA=E4=BA=BA=E8=84=B8?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 001测试海康api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/001测试海康api.py b/001测试海康api.py index 2e2ab1c..c225df5 100644 --- a/001测试海康api.py +++ b/001测试海康api.py @@ -181,7 +181,7 @@ async def get_all_employee_pictures(pageNo=1, pageSize=500): async def face_group_addition_service(name, description): result = await HaikangUtil.face_group_addition(name, description) print(result) - with open("face_group_addition_service.json", "w", encoding="utf-8") as f: + with open("face_group_addition_service.json", "a", encoding="utf-8") as f: f.write(json.dumps(result[1])) # 向分组中添加单个人脸 @@ -202,7 +202,7 @@ async def face_single_addition_service(faceGroupIndexCode, image_path, name): result = await HaikangUtil.face_single_addition(faceGroupIndexCode, faceInfo, facePic) print(result) - with open("face_single_addition_service.json", "w", encoding="utf-8") as f: + with open("face_single_addition_service.json", "a", encoding="utf-8") as f: f.write(json.dumps(result[1]))