Why calling a function inside a Python class __init__ can be both Attribute and Method?

后端 未结 0 1026
误落风尘
误落风尘 2021-01-13 07:45

I am quite confused with the method and attribute of a Python class. Suppose we have a Python class like this:

# case 1
clas         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题