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.
可能重复: 在没有出现 DOS shell 的情况下运行 python 脚本
我有一个 Python 脚本,Windows 调度程序为我每 5 分钟运行一次。该脚本运行良好,但每次运行它都会在我的桌面上快速加载控制台,然后自动关闭。有谁知道如何消除这种行为?我希望它在我不知道的情况下在后台运行。
运行它pythonw而不是python(pyw如果您使用的是新的启动器)。
pythonw
python
pyw