Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
stderr我想stdout在pythonw. 如何确定脚本是在运行pythonw还是在运行python?
stderr
stdout
pythonw
python
sys.executable-- “在有意义的系统上,给出 Python 解释器的可执行二进制文件名称的字符串。”
sys.executable