The class private method _ private_method starts with an underscore. it is declared as a private method and cannot be called outside the class. Call slef. _ private_methods within the class. Class proprietary method: __init _ constructor. When an object is generated, the _ del _ destructor is called. when the object is released, the _ repr _ print is used, convert _ setitem _ to assign value by INDEX _ getitem _ to obtain value by INDEX _ l...
Class Private method
_ Private_method starts with two underscores. it is declared as a private method and cannot be called outside the class.
Call slef. _ private_methods within the class.
Class proprietary method:
_ Init _ constructor called when an object is generated
_ Del _ destructor used to release objects
_ Repr _ print, convert
_ Setitem _ assign values based on the index
_ Getitem _ obtain the value based on the index
_ Len _ get the length
_ Cmp _ comparison calculation
_ Call _ function call
_ Add _ addition operation
_ Sub _ subtraction
_ Mul _ multiplication operation
_ P _ division operation
_ Mod _ remainder operation
_ Pow _ caller