Commit 410f56c1 by BellCodeEditor

save project

parent e11f25b1
Showing with 8 additions and 1 deletions
...@@ -11,5 +11,11 @@ def total(): ...@@ -11,5 +11,11 @@ def total():
except: except:
print("请输入一个整数") print("请输入一个整数")
return total return total
def sum(money):
h=0
for i in money:
h=h+i
return h
result = total() result = total()
print(result) result1=h(result )
print(result1)
\ 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