随风 当前离线
荣誉版主
123456789 a bde 0 c f复制代码
1 a 2 3 4 5 b c g 6 d 7 e f 8 9 0复制代码
youxi01 当前离线
TOP
ieutk 当前离线
@echo off setlocal enabledelayedexpansion set "num=0" :aa for /f "delims=" %%a in (a.txt) do call :ie "%%a" set /a num+=1 goto aa :ie set "ya=%~1" for /l %%i in (%num% 1 100) do ( if "!ya:~%%i,1!"==" " goto :eof if not "!ya:~%%i,1!"=="" echo !ya:~%%i,1! goto :eof )复制代码
梦想种子 当前离线
五级士官
@echo off&setlocal enabledelayedexpansion set max=0 for /f "delims=" %%i in (a.txt) do ( set /a i+=1 call :split "%%i" !i!) for /l %%i in (0 1 %max%) do ( for /l %%j in (0 1 !i!) do ( set t=!s_%%j_%%i! if not "!t!" == "" if not "!t!" == " " echo !t!)) pause&exit :split set c=-1&set "s=%~1" :next set /a c+=1 if not "!s:~%c%,1!" == "" ( set s_%2_%c%=!s:~%c%,1! goto next ) else if %c% gtr %max% set max=%c%复制代码
评分人数
没仔细看题吧,不光是横变竖哦。。