import sys import os # 将folder1的路径添加到sys.path sys.path.append(os.path.abspath(os.path.dirname(__file__)))