mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
16 lines
200 B
Python
16 lines
200 B
Python
class A:
|
|
@property
|
|
def x(self):
|
|
return self._x
|
|
|
|
def __init__(self):
|
|
self._x = 1
|
|
|
|
def _foo(self):
|
|
print(self._x)
|
|
|
|
a = A()
|
|
a._foo()
|
|
|
|
print(a.x)
|
|
print(a._<caret>x) |