Commit b0aac58a by BellCodeEditor

save project

parent 05e7d622
Showing with 35 additions and 0 deletions
def a():
total=[]
while Ture:
b=input("请输入菜品价格")
if b=="q"
break
else:
try:
b=int(b)
except
print("")
else:
total.append(b)
print(total)
a()
\ No newline at end of file
def a():
total=[]
while Ture:
b=input("请输入菜品价格")
if b=="q"
break
else:
try:
b=int(b)
except
print("")
else:
total.append(b)
print(total)
a()
\ 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