更新时间:2023-02-22 21:03:22
在Windows上,您可以使用pythonw.exe
可执行文件在后台运行Python脚本.这将在后台运行您的程序,而没有可见的过程或与之交互的方式.如果没有系统监视器,也无法终止它.有关pythonw.exe
的更多信息,请点击此处:
pythonw.exe还是python.exe?
On Windows, you can run a Python script in the background using the pythonw.exe
executable. This will run your program in the background, with no visible process or way to interact with it. You also cannot terminate it without a system monitor. More information on pythonw.exe
here:
pythonw.exe or python.exe?
祝你好运!