2020-12-13
阅读量:
1135
python报错: TypeError: 'int' object is not callable
问:
python报错:
TypeError: 'int' object is not callable
答:
检查前面的代码发现是因为前面不小心执行了min=3,将min赋值为3,使其失去了原函数的作用,解决方法是执行del min恢复其函数的功能再调用:






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论