Commit 3399c6e6 by BellCodeEditor

save project

parent 047fef81
Showing with 5 additions and 5 deletions
...@@ -11,14 +11,14 @@ def new_input(): ...@@ -11,14 +11,14 @@ def new_input():
print("请重新输入数字") print("请重新输入数字")
else: else:
topoio.append(yufg) topoio.append(yufg)
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