python脚本批量关闭exe文件

1、安装psutil库

pip install psutil

2、示例代码

"""
@contact: 微信 1257309054
@file: main.py
@time: 2024/3/9 21:16
@author: LDC
"""
import os
import time
import psutil


def is_process_running(process_name):
    # 查看程序是否还存活
    for process in psutil.process_iter(<
03-10 03:11