我知道,在CMD窗口,我可以键入以下文本结束进程:麻烦在使用Python
taskkill/im chrome.exe /f
但我怎么能使用Python呢?
我已经试过这样:
from subprocess import *
call("taskkill/im chrome.exe /f", shell=True)
但它表明这一点:
'taskkill' is not recognized as an internal or external command, operable program or batch file.
那么,什么是错我的代码?我怎样才能使它工作?
可能重复的[是否有可能从Python内部杀死Windows上的进程?](http://stackoverflow.com/questions/6278847/is-it-possible-to-kill-a-process-on- windows-from-within-python) – RvdK