Commit 3399c6e6 by BellCodeEditor

save project

parent 047fef81
Showing with 5 additions and 5 deletions
......@@ -11,14 +11,14 @@ def new_input():
print("请重新输入数字")
else:
topoio.append(yufg)
return topoio
return topoio
def sum(money):
count=0
for i in money:
count=count+i
return count
for i in money:
count=count+i
return count
poz=new_input()
poi=sum(price)
poi=sum(poz)
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