From d71b54dd4c41d4ecdf5f1b6b5134c8f006b8d291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=93=B6=E5=86=9B?= Date: Wed, 15 Oct 2025 18:03:05 +0800 Subject: [PATCH] no message --- pythonProject/第二章/if/双分支结构2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonProject/第二章/if/双分支结构2.py b/pythonProject/第二章/if/双分支结构2.py index 5cf5bd9..4ac3fd5 100644 --- a/pythonProject/第二章/if/双分支结构2.py +++ b/pythonProject/第二章/if/双分支结构2.py @@ -1,3 +1,3 @@ number=eval(input("请输入幸运数字:")) -result="恭喜您中奖啦!" if number==1 else "hehe!" +result="恭喜您中奖啦!" if number>60 else "hehe!" print(result) \ No newline at end of file