From 10dc195f1ad2c3bafa692b7704839c849b5cc4f2 Mon Sep 17 00:00:00 2001 From: CodingCat Date: Mon, 19 Feb 2024 16:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3:=E5=90=8E=E7=9A=84=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FindNew.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FindNew.py b/FindNew.py index 1ceb63a..de0a5ac 100644 --- a/FindNew.py +++ b/FindNew.py @@ -48,8 +48,10 @@ def get_projects(filenames): lines = category.split('\n') category_name = lines[0].strip() projects = result.get(category_name,[]) + if category_name == 'python': + print(projects) for line in lines[1:]: - match = re.search(r'\* \[(.+)\]\((.+)\):(.+)', line) + match = re.search(r'\* \[(.+)\]\((.+)\):(.*)', line) if match: project_name, url, description = match.groups() projects.append(project_name)