type() 내장 함수 파이썬에서 객체에 대한 클래스 형을 확인하기 위해서 type() 내장 함수를 이용합니다. import types class Rectangle(object): def __init__(self, width, height): self.width = width self.height = height r = Rectangle(3, 4) print(type(r)) """ """ type() 함수를 이용하면 다음과 같은 형식으로도 객체의 형을 확인할 수도 있지만, 좋은 방법은 아닙니다. if ( type(r) == type(Rectanble(0, 0)) ): # 추가적이 객체를 생성함 print('r is "Rectangle" instance.') """ r is "Rectangle" insta..