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.
我正在运行一个脚本python,它通过WebSockets一个HTML页面进行交互。当我关闭HTML窗口时,我向 python 发送命令以完成所有处理。但是,在那之后我希望它关闭窗口。我已经尝试过sys.exit(0),但它只会引发错误并保持打开状态。
python
WebSockets
HTML
sys.exit(0)
有任何想法吗?
谢谢