📜  python双下划线方法 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:13.140000             🧑  作者: Mango

代码示例1
Double underscore methods are special methods defined by Python 
that can serve a special purpose. 

Ex: 
  __eq__ : determines what to do when determining 
           equality (==) of a certain object