美文网首页
‘int’ object is not callable

‘int’ object is not callable

作者: cynull | 来源:发表于2021-07-08 09:54 被阅读0次

问题:用自带函数求list等长度时候报错,比如len(list)

原因:使用了len作为变量

比如 len = len(list)

或者使用len作为函数参数

int test(a,b,len)

修改:在编译器中搜索len,修改

相关文章

网友评论

      本文标题:‘int’ object is not callable

      本文链接:https://www.haomeiwen.com/subject/fhbzultx.html