标签:nonlocal oca class python nbsp style def cal fun
def Funx(x): def Funy(y): return x*y return Funy print(Funx(5)(7))
def Fun1(): x = 7 def Fun2(): nonlocal x x *= x return x return Fun2() print(Fun1())
标签:nonlocal oca class python nbsp style def cal fun
原文地址:https://www.cnblogs.com/Essaycode/p/10054294.html