Commit 0af10857 by BellCodeEditor

auto save

parent ee290b3f
Showing with 15 additions and 2 deletions
def hello(name):
content = "你好" + name
return content
result = hallo("小易")
ptrint(result)
\ No newline at end of file
...@@ -11,5 +11,12 @@ def new_input(): ...@@ -11,5 +11,12 @@ def new_input():
print("请输入数字或q") print("请输入数字或q")
return total return total
def sum(money):
count = 0
for i in money:
count += i
return count
listl = new_input() listl = new_input()
print(listl) result = sum(listl)
\ No newline at end of file print(result)
\ 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