def b():
def p():
print('pppp')
return p
v=b()
v()
print(v.__name__,v)
indicator=0
def b():
global indicator
def p1():
print('11111111')
def p2():
print('2222222222')
def p3():
print('3333333333333')
def p4():
print('4444444444444444444')
if indicator==0:
return None
elif indicator==1:
return p1
elif indicator==2:
return p2
elif indicator==3:
return p3
elif indicator==4:
return p4
else:
raise NotImplementedError('indicator is wrong!')
v=b()
print(v)
indicator=1
v1=b()
print(v1.__name__,v1)
indicator=2
v2=b()
print(v2.__name__,v2)