就是 1 匹配成 first 输出
2 --> second
3 --> third
4 -- forth
这样的
谢谢啦
>>> order = ['first', 'second', 'third', 'forth']
>>> while True:
i = int(input('请输入:'))
if i > 4 or i < 1:
print('Bye')
break
print(order[i-1])
请输入:1
first
请输入:3
third
请输入:4
forth
请输入:5
Bye