From 7979281c09cc08058ff1d8d381e7074388280d94 Mon Sep 17 00:00:00 2001 From: Mars Date: Wed, 2 Jul 2025 16:45:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dscheduler.py=E5=A4=9A?= =?UTF-8?q?=E8=A1=8Cf-string=E6=9C=AA=E9=97=AD=E5=90=88=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84SyntaxError=EF=BC=8C=E4=BF=9D=E8=AF=81Linux=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/scheduler.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/backend/scheduler.py b/backend/scheduler.py index 6973800..d775f4d 100644 --- a/backend/scheduler.py +++ b/backend/scheduler.py @@ -197,15 +197,17 @@ class LotteryScheduler: open_red = [last_draw.red_ball_1, last_draw.red_ball_2, last_draw.red_ball_3, last_draw.red_ball_4, last_draw.red_ball_5, last_draw.red_ball_6] open_blue = [last_draw.blue_ball] - open_code_str = f"{' '.join(f'{n:02d}' for n in open_red)} | { - ' '.join(f'{n:02d}' for n in open_blue)}" + red_str = ' '.join(f"{n:02d}" for n in open_red) + blue_str = ' '.join(f"{n:02d}" for n in open_blue) + open_code_str = f"{red_str} | {blue_str}" else: open_red = [last_draw.front_ball_1, last_draw.front_ball_2, last_draw.front_ball_3, last_draw.front_ball_4, last_draw.front_ball_5] open_blue = [last_draw.back_ball_1, last_draw.back_ball_2] - open_code_str = f"{' '.join(f'{n:02d}' for n in open_red)} | { - ' '.join(f'{n:02d}' for n in open_blue)}" + red_str = ' '.join(f"{n:02d}" for n in open_red) + blue_str = ' '.join(f"{n:02d}" for n in open_blue) + open_code_str = f"{red_str} | {blue_str}" # 固定号码开奖比对 fixed_result = None if last_draw: