binding of nonlocal for specific function

前端 未结 0 873
再見小時候
再見小時候 2021-02-04 18:06
x = 0
def outer():
    x = 1
    def inner():
        nonlocal x
        x = 2
        def vnat():
            nonlocal x
            x = 5
            print(\'vnat:\',          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题