From 667e59eb963ecdd429a48996edd034446d1235da Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Mon, 12 Aug 2024 17:13:35 +0800 Subject: [PATCH] Update iptv_udp.py --- py/iptv_udp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/iptv_udp.py b/py/iptv_udp.py index bcd7d2d..e9aa7cb 100644 --- a/py/iptv_udp.py +++ b/py/iptv_udp.py @@ -327,7 +327,7 @@ def custom_sort_key(line): return (find_number_before_comma(line), line) with open('c0.txt', 'r', encoding='utf-8') as file: lines = file.readlines() -sorted_lines = sorted(lines, key=custom_sort_key +sorted_lines = sorted(lines, key=custom_sort_key) # 写入新文件 with open('c00.txt', 'w', encoding='utf-8') as file: for line in sorted_lines: