클래스 속성을 만드는 방법? 이 질문에는 이미 다음과 같은 답이 있습니다. 클래스 메소드에 속성() 사용 (19개 답변) 마감됨3년 전에. 할 수 .@classmethod할 수 있는 ?클래스에 속성을 추가할 수 있는 비슷한 장식가가 있습니까?내가 무슨 말을 하는지 더 잘 보여줄 수 있어요. class Example(object): the_I = 10 def __init__( self ): self.an_i = 20 @property def i( self ): return self.an_i def inc_i( self ): self.an_i += 1 # is this even possible? @classproperty def I( cls ): return cls.the_I @classmethod def ..