From a61bc3ef1535692cd46594daeeb6eb2120d5485a Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Sat, 10 May 2025 08:07:24 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/测绘站采集.py b/py/测绘站采集.py index f691681..65cdc6d 100644 --- a/py/测绘站采集.py +++ b/py/测绘站采集.py @@ -144,7 +144,7 @@ def main(): # 生成播放列表 if valid_urls: output_file = f'playlist/{province}{isp}.txt' - with open(f'rtp/{filename}.txt', 'r') as src, open(output_file, 'w') as dst: + with open(f'rtp/{filename}.txt', 'r') as src, open(output_file, 'a') as dst: original_content = src.read() for url in valid_urls: modified = original_content.replace('rtp://', f'{url}/rtp/')