Commit e87964af by BellCodeEditor

auto save

parent 2363a51d
Showing with 9 additions and 13 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
unit= input('请输录(q退出):') unit= input('请输录(q退出):')
if unit=='q': if unit=='q':
break break
......
city=['北京','旧金山'] try:
area=input('想去哪') age = int(input('你今年几岁了?'))
if area in city: except:
print('可以坐飞机'+area) print('要输入整数')
else: else:
print('没有'+area'这座城市') if age < 18:
print('不可以')
print('程序结束')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment