python 私有函数

class a():
  def a1(self):
    print (123)

  def __test3(self): #私有函数,其他脚本文件是无法调用的,函数命名规则就是前面加 __(2个下划线)
    print ("私有函数")

原文地址:https://www.cnblogs.com/kaibindirver/p/12834062.html