__author__ = "wang" def func_a(name): print('hi %s' % name) def func_b(): return func_a func = func_b() func('wang')
func = func_b() 执行后的结果就相当于 func = func_a,那么func('wang')其实就是func_a('wang')啊
func = func_b()
func = func_a
func('wang')
func_a('wang')
2.1m questions
2.1m answers
60 comments
57.0k users