python的一些惯用法摘要
不知道何时摘录到草稿纸上的,还挺容易忽略的.
·Names that begin with a single underscore (_X) are not imported by a from module import * statement.
·Names that have two leading and trailing underscores (__X__) are system defined names, which have special meaning to the interpreter.
·Names that begin with two underscores and do not end with two more (__X) are localied ("mangled") to enclosing classes.
·The name that is just a single underscore(_) retains the result of the last expression, when working interactively.
p.s. 可算找到出处了 《Learning Python》 p.137~138 Varialbe Name Rules - Naming conventions