def test_other_methods(): # static, class 멤버에 접근 print("참조 카운트:", Point.get_count_of_instance()) Point.static_method()
def test_other_method(): #static, class멤버에 접근하기 print("참조 카운트: ", Point.get_count_of_instance()) #get_count_of_instance에는 cls인자가 있고, Point클래스를 받기 때문에 따로 적어주지 않아도 된다. Point.static_method()