Commit ec4064b4 by BellCodeEditor

auto save

parent 6d88eca4
Showing with 23 additions and 0 deletions
def baby():
jntm=[]
while True:
ngm=input('请输入你点的菜品(输入p退出):')
if ngm=='p':
break
else:
try:
ngm=int(ngm)
except:
print('你tm别赖账,请输入价格')
else:
jntm.append(ngm)
print('-'*30)
return baby()
a=baby()
print(a)
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