Commit 88c2e1a9 by BellCodeEditor

save project

parent 92cba073
Showing with 17 additions and 8 deletions
total=[]
while True:
a=input("请输入菜名:")
if a=='q':
break
else:
total.append(a)
print(total)
try:
total=[]
while True:
a=input("请输入菜名:")
if a=='q':
break
else:
total.append(a)
print(total)
except:
print('请重输')
print('ok')
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