bat脚本模拟黑客帝国数码雨
将下面的文件写道txt文件中并将txt后缀改为.bat
之后点击该批处理脚本即可看到效果。
@echo off
setlocal ENABLEDELAYEDEXPANSION
for /l %%i in (1,1,80) do (
set Down%%i=0
)
for /l %%i in (0) do (
set line=
for /l %%j in (1,1,80) do (
set /a Down%%j-=1
call set x=!down%%j!
if !x! LSS 0 (
set /a Arrow%%j=!random!%%6
set /a Down%%j=!random!%%15+10
)
call set x=!Arrow%%j!
if "!x!" == "1" (
set line=!line!1
) else (set "line=!line! ")
)
call set /p=!line!<nul
)
版权声明:本文为ezhar原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。