首先,我們在桌面上先創建一個“.bat”格式的檔案,檔案名為“數字雨.bat”,創建好了之后右鍵點擊編輯,
在其中輸入:
@echo off title 數字雨 color 0a setlocal ENABLEDELAYEDEXPANSION for /l %%i in (0) do ( set "line=" for /l %%j in (1,1,80) do ( set /a Down%%j-=2 set "x=!Down%%j!" if !x! LSS 0 ( set /a Arrow%%j=!random!%%3 set /a Down%%j=!random!%%15+10 ) set "x=!Arrow%%j!" if "!x!" == "2" ( set "line=!line!!random:~-1! " ) else (set "line=!line! ") ) set /p=!line!<nul )
回傳后雙擊點擊運行,

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/238398.html
標籤:其他
