且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Python脚本作为Windows后台进程运行

更新时间: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.exehere: pythonw.exe or python.exe?

祝你好运!