Commit 93a32b13 by BellCodeEditor

save project

parent 024fb164
Showing with 17 additions and 9 deletions
total = [] def baby():
while True: jntm=[]
unit= input("请输入:") while True:
if unit== 'q': ngm=input('请输入你点的菜品(输入p退出):')
break if ngm=='p':
else: break
total.append(unit) else:
print(total) jntm.append(ngm)
\ No newline at end of file print(jntm)
baby()
\ No newline at end of file
try:
a=int(input('你几岁'))
except:
print('你给我tm输入整数!')
print('程序结束了')
\ 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