Commit 93695e12 by BellCodeEditor

save project

parent c9fe30a6
Showing with 10 additions and 2 deletions
...@@ -13,5 +13,12 @@ def a(): ...@@ -13,5 +13,12 @@ def a():
total.append(unit) total.append(unit)
print("*"*30) print("*"*30)
return(total) return(total)
result=a() def sum(m):
a() count=0
for i in m:
count+=i
return count
price=a()
pay=sum(price)
print("消费",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