Commit 56aecda3 by BellCodeEditor

save project

parent 69291b9d
Showing with 9 additions and 17 deletions
def new_input():
n = []
while True:
z=input('请输入:')
if z=='q':
break
else:
try:
z=int(z)
except:
print('重新输')
else:
n.append(z)
print('-'*30)
print(n)
new_input()
\ No newline at end of file
n = []
while True:
z=input('菜名:')
if z=='qp':
break
else:
n.append(z)
print(z)
\ 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