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.
我有一个cherrypy 应用程序,我想用一个简单的gui 来控制http。问题是我不希望cherrypy窗口和gui同时运行。有没有办法让cherrypy应用程序窗口可见?
它是为 Windows 编写的,这可能会有所不同
使用pythonw.exe而不是python.exe它将在没有控制台窗口的情况下启动。
pythonw.exe
python.exe
如果您使用的是 py2exe,则需要将安装文件更改为不使用控制台
from distutils.core import setup import py2exe setup(windows=[{"script":"hello.py"}])