【发布时间】:2013-04-25 19:19:23
【问题描述】:
有没有人列出以双下划线开头和结尾的特殊 python 属性,并简要说明它们的功能?
大致如下:
{
"__slots__": "an iterable that restricts a set of admissible methods in a class",
"__imul__": "*=",
"__doc__": "docstring",
}
【问题讨论】:
标签: python standard-library double-underscore