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