Commit 97fe1579 by BellCodeEditor

save project

parent f2885365
Showing with 15 additions and 11 deletions
def makam():
fist=[]
while True:
new_input=input("请输入菜品价格")
if new_input=="p":
break
else:
try:
new_input=int(input("请输入菜品价格"))
except:
print("请输入整数")
else:
fist.append(new_input)
print("当前菜单:"+str(fist))
\ No newline at end of file
def er():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
er()
\ 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