Commit 84ef1251 by BellCodeEditor

save project

parent d3b5e58e
Showing with 3 additions and 3 deletions
......@@ -2,7 +2,7 @@ def new_input():
total = []
while True:
unit= input("请输入(b)退出:")
if money== 'b':
if unit == 'b':
break
else:
try:
......@@ -12,7 +12,7 @@ def new_input():
else:
total.append(unit)
finally:
print("-"*30)
print("==============")
return total
count=0
......@@ -20,7 +20,7 @@ def sum(money):
count = 0
for i in money:
count = count + i
return count
price = new_input()
......
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