Commit a081c634 by BellCodeEditor

save project

parent 051fccc0
Showing with 9 additions and 2 deletions
......@@ -12,4 +12,11 @@ def hello():
else:
total.append(money)
return total
hello()
\ No newline at end of file
def sum(price):
a=0
for i in price:
a=a+i
return a
pay=sum(hello())
print("消费了"+str(pay)+"元")
\ No newline at end of file
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