1130342432 当前离线
列兵
CUer 当前离线
上尉
TOP
Hello123World 当前离线
荣誉版主
@echo off Set n=1 :hello For /l %%i in (1 1 %n%) do Set /p=1 <nul echo\ Set /a n+=1 if %n% leq 10 goto hello pause >nul复制代码
lfoqtal 当前离线
一级士官
CrLf 当前离线
论坛巡查
@echo off&setlocal enabledelayedexpansion set n=111 for /l %%a in (1 1 6) do ( set /a n=n*10+n%%10 echo !n! ) pause复制代码
@echo off&setlocal enabledelayedexpansion set n=11111111111111 for /l %%a in (1 1 10) do echo !n:~0,%%a! pause复制代码
评分人数
@echo off setlocal enabledelayedexpansion set "str=1111111111" for /l %%a in (1,1,5) do ( echo,!str:~0,%%a! ) pause复制代码
@echo off setlocal enabledelayedexpansion set "n=" for /l %%a in (1,1,5) do ( set n=1!n! echo,!n! ) pause复制代码
@echo off for /l %%a in (1,1,5) do ( for /l %%b in (1,1,%%a) do ( set /p "=1"<nul ) echo, ) pause复制代码