mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 12:01:25 +07:00
18 lines
219 B
Python
18 lines
219 B
Python
|
|
class C(object):
|
|
@property
|
|
def x(self):
|
|
return self._x
|
|
|
|
def __init__(self):
|
|
self._x = None
|
|
|
|
@x.setter
|
|
def x(self, value):
|
|
self._x = value
|
|
|
|
c = C()
|
|
print(c.x)
|
|
del c.x
|
|
|
|
c.x = 1 |