0
任何人都会有一个特殊的python属性列表,以双下划线开头和结尾并简要说明它们的功能吗?标准python库中的特殊双下划线属性的完整列表?
东西大致如下:
{
"__slots__": "an iterable that restricts a set of admissible methods in a class",
"__imul__": "*=",
"__doc__": "docstring",
}
http://docs.python.org/2/reference/datamodel.html#special-method-names看起来很有权威性。 – msw 2013-05-01 18:38:13
[查找所有双下划线变量列表?](http://stackoverflow.com/questions/8920341/finding-a-list-of-all-double-underscore-variables) – 2013-05-01 19:16:57