最終更新:2022-10-04 (火) 06:43:07 (569d)  

sys.executable
Top / sys.executable

https://docs.python.org/3/library/sys.html#sys.executable

A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable will be an empty string or None.