raiseValueError('({}, {}) is not on the curve'.format(x, y))
def__eq__(self, other):
➋
returnself.x == other.x andself.y == other.y \
andself.a == other.a andself.b == other.b
➊ 주어진 점이 곡선 위에 있는지 검사합니다.
➋ 두 점은 같은 곡선 위에 있고 그 좌푯값이 동일해야만 같다고 판정합니다.
이제 아래와 같이
Point
객체를 생성할
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.