why the self was not required in class instantiation in Python

后端 未结 0 1602
后悔当初
后悔当初 2021-01-07 02:58

I am going through Python\'s class tutorial and when we do attribute references, we need to provide the value of self

class MyClass:
    
   def f(self):
             


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