调用嵌套函数outer(),两次输出变量x的值是不一样的。
def outer():
x = “local”
def inner():
x = ‘nonlocal’
print(“inner:”, x)
inner()
print(“outer:”, x)