Commit 44f6e1bf by BellCodeEditor

save project

parent 41a677ab
Showing with 8 additions and 10 deletions
def add():
x = 5
y = 9
print("执行return之前")
return x
print("执行return之后")
z=x+y
result = add()
print(result)
\ No newline at end of file
def sum(money):
count=0
for i in money:
count=count+i
return count
money=[12,42,56]
sum(money)
print(sum(money))
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