__slots__1 __slots__ Method 출처 :https://www.pythontutorial.net/python-oop/python-__slots__/ Python __slots__ In this tutorial, you will learn about the Python __slots__ and how how to use it to make your class more efficient. www.pythontutorial.net Introduction to the Python __slots__ 다음은 x 및 y 좌표를 포함하는 두 개의 특성이 있는 Point2D 클래스를 정의합니다. class Point2D: def __init__(self, x, y): self.x = x self.y = y def __repr__(self): return.. 2023. 4. 4. 이전 1 다음