Which variable does 'self' specify?

后端 未结 0 1561
后悔当初
后悔当初 2021-01-14 08:14

In the code;

def __init__(self, x):
    self.x=x

If I subsequently call the constructor and pass 2 in it, does \'self.x\' refer to the 2 I pa

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