13 lines
374 B
Python
13 lines
374 B
Python
# 匹配模式
|
|
num=eval(input("请输入幸运数字:"))
|
|
match num:
|
|
case 1:
|
|
print("您输入了其他幸运数字1")
|
|
case 2:
|
|
print('您输入了其他幸运数字2')
|
|
case 3:
|
|
print('您输入了其他幸运数字3')
|
|
case 4:
|
|
print('您输入了其他幸运数字4')
|
|
case 12:
|
|
print('您输入了其他幸运数字12') |