fish 当前离线
中尉
@echo off for /l %%i in (001,1,999) do ( if %%i lss 100 ( set /p"=0"<nul if %%i lss 10 ( set /p"=0"<nul ) ) echo %%i ) pause复制代码
TOP
jonm158 当前离线
列兵
jixun66 当前离线
上等兵
@echo off set /a a=%a%+1 echo %a% if %a%==999 pause %0复制代码
paladinjin 当前离线
@echo off for /l %%i in (0,1,9) do ( for /l %%j in (0,1,9) do ( for /l %%k in (1,1,9) do ( set /p=%%i%%j%%k<nul ) ) ) pause>nul复制代码
leap 当前离线
三级士官
@echo off for /l %%i in (0,1,9) do ( for /l %%j in (0,1,9) do ( for /l %%k in (0,1,9) do ( if %%i%%j%%k neq 000 (echo %%i%%j%%k) )))>>1.txt pause复制代码
原帖由 paladinjin 于 2010-8-19 16:06 发表 @echo off for /l %%i in (0,1,9) do ( for /l %%j in (0,1,9) do ( for /l %%k in (1,1,9) do ( set /p=%%i%%j%%knul
lvsehuaxue 当前离线
六级士官
edmond 当前离线
少尉
smallpigs 当前离线
@echo off for /l %%i in (1001 1 1999) do ( set "var=%%i" call echo %%var:~-3%%>>cal.txt ) pause复制代码
zsllq 当前离线
skuny 当前离线
@echo off for /l %%i in (1 1 999) do ( if %%i lss 10 (echo 00%%i) else (if %%i lss 100 (echo 0%%i) else echo %%i) ) pause复制代码
ithinkican 当前离线