From 0d5a9306fdbf982e2c76a6196cf62d1aa527b26e Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Fri, 30 Aug 2024 03:25:41 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E9=85=92=E5=BA=97=E6=BA=90.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/酒店源.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/酒店源.py b/py/酒店源.py index cdfcbe9..ae8b226 100644 --- a/py/酒店源.py +++ b/py/酒店源.py @@ -342,7 +342,7 @@ for url in urls: valid_urls.append(result) for url in valid_urls: print(url) - print("URL获取完成") + print("URL获取完成") # 遍历网址列表,获取JSON文件并解析 for url in valid_urls: @@ -976,7 +976,7 @@ for line in lines: with open('酒店优选.txt', 'w', encoding="utf-8") as file: file.writelines(unique_lines) #任务结束,删除不必要的过程文件 -files_to_remove = ['去重.txt', "2.txt", "iptv.txt", "e.txt", "a0.txt", "a.txt", "a1.txt", "b.txt", "c.txt", "c1.txt", "c2.txt", "d.txt", "f.txt", "o1.txt", "o.txt", "酒店源.txt"] +files_to_remove = ['去重.txt', "2.txt", "iptv#.txt", "e.txt", "a0.txt", "a.txt", "a1.txt", "b.txt", "c.txt", "c1.txt", "c2.txt", "d.txt", "f.txt", "o1.txt", "o.txt", "酒店源.txt"] for file in files_to_remove: if os.path.exists(file): os.remove(file)