Python, in the case of a def has 2 returns
def func(a, b):
return a+b
return a-b
return a+b
return a-b
print(func(4, 2))
# 6
# not 6 2
# Even if a function has 2 returns, we only get the first one.
# And the function processing ends after the first return.
댓글
댓글 쓰기