Commit 3399c6e6 by BellCodeEditor

save project

parent 047fef81
Showing with 3 additions and 3 deletions
...@@ -14,11 +14,11 @@ def new_input(): ...@@ -14,11 +14,11 @@ def new_input():
return topoio return topoio
def sum(money): def sum(money):
count=0 count=0
for i in money: for i in money:
count=count+i count=count+i
return count return count
poz=new_input() poz=new_input()
poi=sum(price) poi=sum(poz)
print("你一共消费"+str(poi)+"元") print("你一共消费"+str(poi)+"元")
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