def test(a, b): print(a + b) def test1(a, b): print(a - b) __all__ = ["test1"]# 只作用于*,可以手动单独导入函数 if __name__ == '__main__': test(1, 2)