caruko 当前离线
中校
TOP
batman 当前离线
考官
荣誉版主
@echo off for /l %%a in (1,1,10000) do set "_%%a=a" echo %time% for /l %%a in (1,1,10000) do set /a _1+=1 echo %time% for /l %%a in (1,1,10000) do set /a _9999+=1 echo %time% pause>nul复制代码
@echo off echo %time% for /l %%a in (1,1,10000) do set /a _9+=1 echo %time% for /l %%a in (1,1,10000) do set /a _10000+=1 echo %time% pause>nul复制代码
@echo off for /l %%a in (1,1,10000) do set "_%%a=a" echo %time% echo %_1% echo %time% echo %_9999% echo %time% pause>nul复制代码
plp626 当前离线
贵宾
CrLf 当前离线
论坛巡查
我们若为提高效率,记住这条实用的: 对数值的单一赋值,set 比set/a 快25%左右。 plp626 发表于 2011-4-22 18:18