当在pythonw中运行时,我希望将stderr和stdout重定向到文件。如何确定脚本是在pythonw中运行还是在python中运行
pythonw
stderr
stdout
python
发布于 2009-10-23 13:37:12
sys.executable --“给出Python解释器的可执行二进制文件名称的字符串,在有意义的系统上。”
sys.executable
https://stackoverflow.com/questions/1611543
相似问题