方式一
(study) 21abc@xyz3134 /d/2021_UAC/svn12/2021/gitbook_workspace1
□□ python
Python 3.8.0 (default, Nov 6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, os
>>> print(sys.executable)
C:\Users\21abc.HAIER\AppData\Local\Continuum\anaconda3\envs\study\python.exe
>>>
方式二
(study) 21abc@xyz3134 /d/2021_UAC/svn12/2021/gitbook_workspace1
□□ where python
C:\Users\21abc.HAIER\AppData\Local\Continuum\anaconda3\envs\study\python.exe
C:\Python39\python.exe
(study) 21abc@xyz3134 /d/2021_UAC/svn12/2021/gitbook_workspace1
□□
VS Code应用
【Ctrl+Shift+P】后,出现:
"Python: Select Interpreter" 或 "Python: 选择解释器"
显示当前:...
粘贴,如C:\Users\21abc.HAIER\AppData\Local\Continuum\anaconda3\envs\study\python.exe