原来的执行代码 python Main.py 修改后的代码 #不加日志输出可能启动不了 pythonw Main.pyw > Main.log 关闭黑窗口 我的是一个网站 仍然可以访问这个进程在后台是一个黑窗口