개체에 속성이 있는지 어떻게 확인합니까? 예를 들어:
>>> a = SomeClass()
>>> a.property
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: SomeClass instance has no attribute 'property'
a
속성을 사용하기 전에 속성이 있는지 어떻게 알 property
수 있습니까?