这似乎发生了很多,并且想知道这是否是Python语言中的要求,还是仅仅是常规问题?
此外,有人可以命名并解释哪些功能倾向于具有下划线,以及为什么(__init__例如)?
__init__
python methods function double-underscore
我见过一些程序员_在类名前面使用(下划线),还有一些程序员使用它来表示局部变量.
_
Java标准是否要求/建议在私有实例变量或类名前面使用_(下划线)?
java coding-style
coding-style ×1
double-underscore ×1
function ×1
java ×1
methods ×1
python ×1