Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
quickFixes
/
PyAddPropertyForFieldQuickFixTest
/
useProperty_after.py
blob: cffca33626b900ebf93a638444b4ca9e3481314c [
file
]
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
.
x
)