feat: add sub package test

This commit is contained in:
2025-09-03 00:21:45 +08:00
parent a5fed6a5ef
commit b8120d6768
3 changed files with 14 additions and 0 deletions

5
sub_package/__init__.py Normal file
View File

@@ -0,0 +1,5 @@
from .sub import sub_func
__all__ = ["sub_func"]
print("__sub_pacakge__.__init__")

3
sub_package/sub.py Normal file
View File

@@ -0,0 +1,3 @@
def sub_func():
print("call: sub_func")

6
sub_package_test.py Normal file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env python3
import sub_package
if __name__ == "__main__":
sub_package.sub_func()