我正在尝试在 Windows 服务中运行 web.application,但我找不到在 application.run() 之后以编程方式停止它的方法。
我试过 sys.exit 并且它不能很好地与 Windows 服务配合使用。
python web.py
python ×1
web.py ×1