-
import time
import subprocess
from os.path import expanduser
chrome_path = expanduser('~\Local Settings\Application Data\Google\Chrome\Application\chrome.exe')
proc = subprocess.Popen(chrome_path)
time.sleep(4)
proc.terminate()
输出: WindowsError: [Error 5] Access is denied
如何终止 Chrome 进程?
Windows XP 上的 Python 2.6。