Python报错TypeError: 'NoneType' object is not callable 阿瑞斯Devops 2024-09-28 224 阅读1分钟 Python报错TypeError: 'NoneType' object is not callable python执行菜单功能,选择查看余额功能报错TypeError: 'NoneType' object is not callable 保存内容如下 检查src文件后没有发现问题,最终在公共方法找到原因注释掉return了【调用函数时没有 return造成的,此外还有缩进格式问题】,取消后问题解决