Commit 88c2e1a9 by BellCodeEditor

save project

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