Commit a112d83a by BellCodeEditor

save project

parent ec2362e3
Showing with 11 additions and 2 deletions
...@@ -14,7 +14,16 @@ def z(): ...@@ -14,7 +14,16 @@ def z():
finally: finally:
print("*"*30) print("*"*30)
return total return total
result=z()
print(result)
def sum(money):
count=0
for i in money:
count=count+i
return count
price=z()
pay=sum(price)
print("您一共消费了"+str(pay)+"元")
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