def foo(): name = 'lhf' def bar(): name = 'wupeiqi' def tt(): print(name) return tt return barfunc = foo()func()()