Commit 390f043e by BellCodeEditor

save project

parent 5dc5bb42
Showing with 3 additions and 3 deletions
...@@ -19,11 +19,11 @@ def sum(money): ...@@ -19,11 +19,11 @@ def sum(money):
# 设置变量count # 设置变量count
count=0 count=0
# 遍历列表 # 遍历列表
for i in money:
# 计算总价 # 计算总价
count=count+i
# 返回总数count # 返回总数count
return count
price = new_input() price = new_input()
......
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