@echo off
for /f %%i in (a.txt) do (set a=%%i&&goto:a)
:a
echo %a%
set /a c=1
set /a d=10
:c
for /f "skip=%c% tokens=* delims=" %%i in (a.txt) do (set b=%%i&&goto :b)
:b
set /a e=%c%%%10
if %e%==0 (set a=%b%) else (set a=%a% %b%)
set /a c=c+1
if %c% lss %d% goto :c
echo %a%>>c.txt
set /a d=%d%+10
if %d% lss 110 goto :c
exit
@echo off & setlocal ENABLEDELAYEDEXPANSION
set h=5
for /f %%i in (java学习笔记.txt) do (
set /a n+=1
set /a a=!n!%%!h!
set /p=%%i <nul
if "!a!"=="0" (
if "!h!"=="5" (set h=10) else (set h=5)
set "n="
echo.
)
)
pause