From c9e83b7eea9af1c086e08a2d70d6d87d1a8664a5 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Tue, 6 May 2025 07:22:33 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E6=B5=8B=E7=BB=98=E7=AB=99=E9=87=87?= =?UTF-8?q?=E9=9B=86.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/测绘站采集.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/py/测绘站采集.py b/py/测绘站采集.py index dc65b79..7a04df1 100644 --- a/py/测绘站采集.py +++ b/py/测绘站采集.py @@ -201,7 +201,6 @@ def get_ip_key(url): # 设置固定的文件夹路径 folder_path = 'playlist' -out_path = '' # 确保文件夹路径存在 if not os.path.isdir(folder_path): print("指定的文件夹不存在。") @@ -216,8 +215,7 @@ for filename in os.listdir(folder_path): lines = file.readlines() # 准备写回文件 - #with open(file_path, 'w', encoding='utf-8') as output_file: - with open(out_path, 'w', encoding='utf-8') as output_file: + with open(file_path, 'w', encoding='utf-8') as output_file: # 使用 tqdm 显示进度条 for line in tqdm(lines, total=len(lines), desc=f"Processing {filename}"): parts = line.split(',', 1)