Aug-24-2020, 03:35 PM
hi,
why is there sometimes an """_""" underscore in the definition of a Class , like this
why is there sometimes an """_""" underscore in the definition of a Class , like this
class C: def __init__(self): self._x = None def getx(self): return self._x def setx(self, value): self._x = value def delx(self): del self._xthanks