'int' object is not callable

Confusion of methods and properties in classes

Problem Description:

'int' object is not callable

problem causes:

'int' object is not callable
Use method definitions for attributes in a class or use attribute definitions for methods in a class

problem solved:

Use the type() function to confirm whether it is an attribute or a method, and use the correct expression

Guess you like

Origin blog.csdn.net/weixin_45609519/article/details/106088119