python skills from low level to high level (under update)
1, Python data model
1. Special methods
Understand the special method deeply. Although len and [] are used in the following example to obtain the length and index value, because we have changed it when defining the special method, the final return value is defined by ourselves.
class Testlen():
# This is a class that tests special method ...
Posted by aboyd on Thu, 23 Dec 2021 16:44:47 +0100