Commit 333bc430 by BellCodeEditor

save project

parent 6b1fd620
Showing with 1 additions and 2 deletions
...@@ -8,14 +8,13 @@ def a(): ...@@ -8,14 +8,13 @@ def a():
total.append(unit) total.append(unit)
print(total) print(total)
return(totle) return(totle)
a()
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
a=[45,55,65,75,85,95,105,115,125] a=[45,55,65,75,85,95,105,115,125]
print(sum(a)) print(sum(a))
price=a() price=a()
pay=sum(price) pay=sum(price)
print("您一共消费"+"str(pay)+'元'") 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