首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
python os.system(第三方程序),有时第三方程序崩溃, windows 弹出“XXX 已停止工作”对话框,但是 os.system 还被阻塞着, python 怎么知道程序已经崩溃了呢?
gamexg
·
2015-04-08 22:27:24 +08:00
· 5257 次点击
这是一个创建于 3461 天前的主题,其中的信息可能已经有所发展或是发生改变。
os.system
Python
方程
4 条回复
•
2015-04-08 23:26:08 +08:00
1
9hills
2015-04-08 22:30:15 +08:00 via iPad
不要用 os.system
Python 3 用 sub process带 timeout
Python2 用 sh
2
gamexg
OP
2015-04-08 22:40:19 +08:00
@
9hills
超时机制不能用啊,第三方程序有时会满CPU工作数小时,靠超时判断的话太浪费资源了。
3
9hills
2015-04-08 22:43:11 +08:00 via iPad
@
gamexg
那就保证第三方程序不阻塞而是退掉。。
4
gamexg
OP
2015-04-08 23:26:08 +08:00
http://stackoverflow.com/questions/2875518/how-do-i-disable-program-has-stopped-working-dialog-in-windows-7
解决。
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
4091 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms ·
UTC 01:04
·
PVG 09:04
·
LAX 18:04
·
JFK 21:04
Developed with
CodeLauncher
♥ Do have faith in what you're doing.