TypeError: 'NoneType' object is not callable--python报错
程序员文章站
2024-02-12 17:24:16
...
报错为
翻译过来为:TypeError:“NoneType”对象不可调用
代码:
def bibao_one():
Jay = "哎哟不错哦"
def bibao_two():
print(Jay)
return bibao_two()
#执行闭包
execute = bibao_one()
execute()
我们在执行调用函数的时候,把括号去掉就是了,如
推荐阅读
-
装饰器 TypeError: 'NoneType' object is not callable
-
报错:TypeError: 'NoneType' object is not callable问题解决
-
Debug3:使用DataFrame时报错TypeError: 'NoneType' object is not callable
-
TypeError: 'NoneType' object is not callable--python报错
-
U-Net运行报错merge6 = merge([drop4,up6], mode = 'concat'...) TypeError: 'module' object is not callable
-
爬虫出现TypeError: cannot use a string pattern on a bytes-like object报错
-
Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object
-
Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#
-
解决报错:TypeError: argument should be integer or bytes-like object, not ‘str‘
-
TypeError: the JSON object must be str, bytes or bytearray, not NoneType