Commit 799fe03e by BellCodeEditor

save project

parent 024fb164
Showing with 23 additions and 1 deletions
try:
age=int(input('你今年几岁了!'))
except:
print('整数')
else:
if age<18:
print('不能喝酒')
print('结束')
\ No newline at end of file
total = []
while True:
unit= input("请输入:")
try:
unit= int(input("请输入:"))
except:
print('请输入数字!')
else:
if unit== 'q':
break
else:
......
taotui=[]
while True:
caiming=input("请输入菜名:")
if caiming=='q':
break
else:
taotui.append(caiming)
print(taotui)
\ No newline at end of file
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