对象名称前的单下划线和双下划线是什么意思?
问题: Can someone please explain the exact meaning of having leading underscores before an object's name in Python? 有人可以解释一下在Python中对象名称前加下划线的确切含义吗? Also, explain the difference between a single and a double leading underscore. 另外,请说明单首和双首下划线之间的区别。 Also, does that meaning stay the same whether the object in question is a variable, a function, a method, etc.? 此外,无论所讨论的对象是变量,函数,方法等,该含义是否都保持不变? 解决方案: 参考一: https://stackoom.com/question/5SXS/对象名称前的单下划线和双下划线是什么意思 参考二: https://oldbug.net/q/5SXS/What-is-the-meaning-of-a-single-and-a-double-underscore-before-an-object-name 来源: oschina 链接: https://my