编辑代码
Python代码
3.11.0
2.7.17
运行
def
outer
():
a =
3
def
inner
():
nonlocal
a a =
1
print(a) outer()