 
- 帖子
- 185
- 积分
- 260
- 技术
- 14
- 捐助
- 0
- 注册时间
- 2022-4-23
|
@echo off
setlocal enabledelayedexpansion
mode con cols=60 lines=30
for /l %%a in (1,1,60) do (set space= !space!)
set /a line=14,col=29
:loop
set /a linenext=%random%%%30
set /a colnext=%random%%%60
for %%a in (line col) do (
if !%%a! lss !%%anext! (set %%aadd=+) else (set %%aadd=-)
)
:loop-1
if %line% neq %linenext% (
set /a line%lineadd%=1
) else (
set /a col%coladd%=1
)
for /l %%a in (1,1,%line%) do echo,
echo,!space:~0,%col%!*
for /l %%a in (1,1,200) do (echo,>nul)
if %col% neq %colnext% (goto :loop-1)
goto :loop |
|