Commit cf22e3fa by BellCodeEditor

save project

parent c885db28
Showing with 2 additions and 4 deletions
def new_input():
total = []
while True:
unit= input("请输入:'p'")
unit= input("请输入:(p退出)")
if unit== 'q':
break
else:
......@@ -13,10 +13,8 @@ def new_input():
total.append(money)
finally:
print("_"*30)
print(total)
new_input()
return total
def sum(money)
def sum(money):
count = 0
for i in money:
count = count + i
......
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