no message
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
num=eval(input("请输入幸运数字:"))
|
||||
print('输入了幸运数字1') if num==1 else print('输入了其他幸运数字')
|
||||
print('输入了幸运数字1') if num==1 else print('输入了其他幸运数字')
|
||||
# 这是 Python 的 条件表达式(三元运算符)
|
||||
# 值A if 条件 else 值B 条件为真返回值A,否则返回值B。
|
||||
Reference in New Issue
Block a user