报错为
翻译过来为:TypeError:“NoneType”对象不可调用
代码:
def bibao_one():
Jay = "哎哟不错哦"
def bibao_two():
print(Jay)
return bibao_two()
#执行闭包
execute = bibao_one()
execute()
我们在执行调用函数的时候,把括号去掉就是了,如
报错为
翻译过来为:TypeError:“NoneType”对象不可调用
代码:
def bibao_one():
Jay = "哎哟不错哦"
def bibao_two():
print(Jay)
return bibao_two()
#执行闭包
execute = bibao_one()
execute()
我们在执行调用函数的时候,把括号去掉就是了,如