Commit 0a36cfa8 by BellCodeEditor

auto save

parent 32653acf
Showing with 21 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
......@@ -12,3 +12,5 @@ def a():
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