import sys print("添加前的路径:", sys.path) WorkDir1 = './ha' sys.path.append(WorkDir1) print("添加后的路径:", sys.path) 路径列表最后多一个