Commit 93a32b13 by BellCodeEditor

save project

parent 024fb164
Showing with 17 additions and 9 deletions
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ No newline at end of file
def baby():
jntm=[]
while True:
ngm=input('请输入你点的菜品(输入p退出):')
if ngm=='p':
break
else:
jntm.append(ngm)
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