@echo offsetlocal enabledelayedexpansionfor /l %%i in (1001,1,1999) do (set x=%%iecho !x:~-3!)pause
@echo off&setlocal EnableDelayedExpansionfor /l %%i in (1,1,99) do (set i=0%%iset i=!i:~-2!echo !i!)
do echo 0%%i这样大于10前面也会加0了