import sys, os sys.path.append(os.pardir) # 为了导入父目录而进行的设定 sys.path.append(os.getcwd())
pass
# 使用内置的sys模块来查看Python解释器的路径 print(sys.executable)