Commit 18c3cb75 by BellCodeEditor

save project

parent 3b3fd425
Showing with 3 additions and 4 deletions
...@@ -8,9 +8,9 @@ def new_input(): ...@@ -8,9 +8,9 @@ def new_input():
else: else:
try: try:
unit=int(unit) unit=int(unit)
except except:
print("请输入新的数字") print("请输入新的数字")
else else:
return total return total
def sum(money): def sum(money):
count=0 count=0
...@@ -20,5 +20,4 @@ for i in money: ...@@ -20,5 +20,4 @@ for i in money:
print=new_input() print=new_input()
pay=sum(money) pay=sum(money)
print("你实际消费"+(str(pay)+"元") print("你实际消费"+(str(pay)+"元")
new_input()
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