from pathlib import Path
import sys
获取 project 目录
project_dir = Path(file).resolve().parent.parent
将 project 目录添加到 sys.path 中
sys.path.append(str(project_dir))
导入 support 模块
import support
support.print_func("Runoob")
from pathlib import Path
import sys
project_dir = Path(file).resolve().parent.parent
sys.path.append(str(project_dir))
import support
support.print_func("Runoob")