如何在后台模式下启动 python

How to launch python in background mode

如何在 Windows 10 上的这个东西中隐藏我的 python 程序?

尝试使用 .pyw 而不是 .py 保存文件。这样终端不会弹出,但您仍然可以使用任务管理器看到它们。