inner_func.py
def outer(a, b):
#関数内だけで使える関数
def inner(c, d):
return c+d
r=inner(a,b)
print(r)
outer(2,3)
出力:
5
Go to list of users who liked
More than 3 years have passed since last update.
def outer(a, b):
#関数内だけで使える関数
def inner(c, d):
return c+d
r=inner(a,b)
print(r)
outer(2,3)
出力:
5
Register as a new user and use Qiita more conveniently
Go to list of users who liked