1. 复合语句中:
    setlocal EnableDelayedExpansion
    set  a=1  &&  echo  !a!
  2. for循环中:
    setlocal EnableDelayedExpansion
    for  /l  %%i  in  (1,2,5)  do  (
        set  /a  a=%%i
        echo  !a!
    )