import psutil def guanbi(): TARGET = "adb.exe" [process.kill() for process in psutil.process_iter() if process.name() == TARGET]