Commit 247f4bae by BellCodeEditor

save project

parent 16fea8ea
Showing with 10 additions and 2 deletions
......@@ -15,4 +15,12 @@ def a():
return total
result = a()
print(result)
\ No newline at end of file
print(result)
def sum(s):
count = 0
for i in s:
count = count + i
return count
price = a()
pay = sum(price)
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