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)