📅  最后修改于: 2022-03-11 14:45:03.209000             🧑  作者: Mango
#Iterates through all the programs running in your system and checks for the one in the string
import psutil
"someProgram" in (p.name() for p in psutil.process_iter())