python __all__

在全局添加__all__,可以确定哪些方法或者哪些类可以被调用,例如:

__all__ = ['__version__', 'JudgeServer']
原文地址:https://www.cnblogs.com/callyblog/p/10396045.html