-
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: [错误 5] 拒绝访问
我该如何结束 Chrome 进程?
Python 2.6 在 Windows XP 上。