Commit 22f2444b by BellCodeEditor

save project

parent 7eaed43a
Showing with 15 additions and 0 deletions
def menu_input():
disc = []
while True:
try:
a = input("请输入菜品价格:")
if a == "esc":
break
b = int(a)
except:
print("请输入数字!")
else:
disc.append(b)
print(disc)
menu_input()
\ 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