模块中的__all__的作用

__all__ = ["Test", "test1"]  #__all__  表示from  import *,这个__all__ 等价与这个*


class Test():
    def test(self):
        print("=====Test=====")


def test1():
    print("====test1=====")


def test2():
    print("====test2=====")

  

 


 


posted @ 2019-07-04 16:48  花er壹樣的女人  阅读(146)  评论(0编辑  收藏  举报