how to understand the content of the green part? Why does it feel so awkward? the feeling in the book is also very vague.
how to understand the content of the green part? Why does it feel so awkward? the feeling in the book is also very vague.
Rational class are accessible in the add method.
if add is defined in this way, there is no problem.
but add passes in a rational object. In add, the parameter that is the Rational class.
while the Rational class does not have n and d attributes, so it cannot be accessed.
Previous: How to solve the unable to select error in php stream_select?
Next: What does the zlib.compress () method return in Python 3.x?