Function assigned to a variable?

后端 未结 0 774
生来不讨喜
生来不讨喜 2020-12-06 13:50
def f(x):
    def g():
        x = \'abc\'
        print (\'x =\', x)
    def h():
        z = x
        print (\'z =\', z)
    x = x + 1
    print (\'x =\', x)
             


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