Commit 0a36cfa8 by BellCodeEditor

auto save

parent 32653acf
Showing with 22 additions and 2 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
...@@ -11,4 +11,6 @@ def a(): ...@@ -11,4 +11,6 @@ def a():
print("") print("")
else: else:
total.append(b) total.append(b)
print(total) print(total)
\ No newline at end of file
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