标签:http sp on html ef new htm python tt
*参考:https://docs.python.org/2/reference/datamodel.html#special-method-names
一 常用:
(1)__init__
(2)__new__
(3)__del__
(4)__repr__
*等等
二 定制属性访问:
(1)__getattr__
(2)__setattr__
(3)__delattr__
六 Emulating container types:
(1)__getitem__:
(2)__setitem__:
标签:http sp on html ef new htm python tt
原文地址:http://blog.csdn.net/seu_lyr/article/details/40622545