[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
@echo off setlocal enabledelayedexpansion for /f "tokens=*" %%i in (1.txt) do ( for %%j in (%%i) do (set /a #%%j+=1)) (for /f "delims=#=" %%i in ('set #^|findstr /v =1') do if not "%%i"=="" set /p s=%%i <nul)>2.txt start 2.txt