Commit 68f461c1 by BellCodeEditor

save project

parent ab3113c4
Showing with 2 additions and 2 deletions
...@@ -15,14 +15,14 @@ def new_input(): ...@@ -15,14 +15,14 @@ def new_input():
print("=====================") print("=====================")
return total return total
# 创建函数sum放入参数money # 创建函数sum放入参数money
def sum(money):+ def sum(money):
# 设置变量count # 设置变量count
count=0 count=0
# 遍历列表 # 遍历列表
for i in money: for i in money:
# 计算总价 # 计算总价
return count
# 返回总数count # 返回总数count
return count
......
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