因为使用anaconda装了不同的虚拟环境,想要看一下jupyter notebook在当前kernel下使用的Python版本。 【效果】: 【代码】: import sys print(sys.executable)