Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面给出了 for 循环的示例。如何在不使用 for 循环的情况下实现相同的功能。
for /l %x in (1, 1, 100) do echo %x
:loop set /a count+=1 echo %count% if %count% neq 100 goto:loop
set /a a=1 :label echo %a% set /a a+=1 if %a%' EQU 100' (goto :outOfLoop) goto :label :outOfLoop echo done!