| @echo off | | | | setlocal enabledelayedexpansion | | :: 初始化满值空格和星星 | | for /l %%i in (1, 1, 10) do ( | | set "spaceStr=!spaceStr! " | | set "starStr=!starStr!*" | | ) | | | | :: 循环输出 | | for /l %%i in (1, 1, 10) do ( | | echo !spaceStr:~%%i!!spaceStr:~%%i!!starStr:~,%%i! | | ) | | for /l %%j in (1, 1, 10) do ( | | echo !spaceStr:~%%j!!starStr:~%%j! | | ) | | | | endlocalCOPY |
|