写个程序

@echo off
rem 在这种写法可读性好,也能执行多语句,但兼容性不太好
set hasit=""
for /F “tokens=1*” %%a in (‘tasklist /nh /fi “imagename eq pythons.exe”’) do if %%a == pythons.exe set hasit=yes
if “%hasit%”==“yes” (
echo 有 python 进程
)else (
echo 没有 python 进程
)

pause

分别启动不同的工程,甚至几个工程。。。哈哈哈哈哈