W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_keyword_nonlocal_2.py:
def myfunc1(): x = "Bill" def myfunc2(): x = "hello" myfunc2() return x print(myfunc1())
x
def
myfunc1
():
x
=
"Bill"
def
myfunc2
():
x
=
"hello"
myfunc2
()
return
x
print
(
myfunc1
())