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