Commit 44f6e1bf by BellCodeEditor

save project

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