Skip to Content
밑바닥부터 시작하는 비트코인
book

밑바닥부터 시작하는 비트코인

by 류정필, 송재준
November 2019
Beginner to intermediate
408 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 밑바닥부터 시작하는 비트코인
353
부록
A
연습문제 해답
1장 유한체
연습문제
1.1
FieldElement
의 두 객체가 서로 다른지 검사하는
!=
연산자를 재정의하도록
FieldElement
클래스의
__
ne
__
메서드를 작성하시오.
class FieldElement:
...
def __ne__(self, other):
# this should be the inverse of the == operator
return not (self == other)
연습문제
1.2
유한체
F
57
에서 다음 연산의 결과를 구하시오.
44
+
f
33
9
-
f
29
17
+
f
42
+
f
49
52
-
f
30
-
f
38
연습문제 해답
APPENDIX
A
밑바닥부터 시작하는 비트코인
354
>>> prime = 57
>>> print((44+33)%prime)
20
>>> print((9-29)%prime)
37
>>> print((17+42+49)%prime)
51
>>> print((52-30-38)%prime)
41
연습문제
1.3
2
개의
FieldElement
객체의 뺄셈을 정의하는
__
sub
__
메서드를 작성하시오.
class FieldElement ...
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.
Start your free trial

You might also like

밑바닥부터 시작하는 딥러닝

밑바닥부터 시작하는 딥러닝

사이토 고키
실리콘밸리 리더십

실리콘밸리 리더십

김정혜, 마이클 롭

Publisher Resources

ISBN: 9791162248294