源代码
def myfunc(): x = 100 def myinnerfunc(): print(x) myinnerfunc() myfunc()
运行结果