热线电话:13121318867

登录
2020-12-13 阅读量: 1135
python报错: TypeError: 'int' object is not callable

问:

python报错:

TypeError: 'int' object is not callable

image.png


答:

检查前面的代码发现是因为前面不小心执行了min=3,将min赋值为3,使其失去了原函数的作用,解决方法是执行del min恢复其函数的功能再调用:

image.png

92.2353
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子