From 5d82328f510a1a0c5ed5beb78e9740dfd2d5791b Mon Sep 17 00:00:00 2001 From: Mars Date: Fri, 4 Jul 2025 17:00:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dprediction.py=E4=B8=AD?= =?UTF-8?q?f-string=E8=B7=A8=E8=A1=8C=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/endpoints/prediction.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/backend/app/api/endpoints/prediction.py b/backend/app/api/endpoints/prediction.py index 258ea4c..ba3f916 100644 --- a/backend/app/api/endpoints/prediction.py +++ b/backend/app/api/endpoints/prediction.py @@ -193,12 +193,16 @@ def recommend_today(db: Session = Depends(get_db)): # 2. 组装推送内容(固定投注+4注推荐) msg_lines = [title] # 固定投注 - msg_lines.append(f"红球:{' '.join(f'{n:02d}' for n in fixed['red'])} 蓝球:{ - ' '.join(f'{n:02d}' for n in fixed['blue'])}") + msg_lines.append( + f"红球:{' '.join(f'{n:02d}' for n in fixed['red'])} " + f"蓝球:{' '.join(f'{n:02d}' for n in fixed['blue'])}" + ) # 推荐号码 for rec in results: - msg_lines.append(f"红球:{' '.join(f'{n:02d}' for n in rec['red'])} 蓝球:{ - ' '.join(f'{n:02d}' for n in rec['blue'])}") + msg_lines.append( + f"红球:{' '.join(f'{n:02d}' for n in rec['red'])} " + f"蓝球:{' '.join(f'{n:02d}' for n in rec['blue'])}" + ) if dlt_append: msg_lines.append("都追加,谢谢。") # 3. 快乐8推送(3注十选,合并到主消息)