与随风的区别在于,我的不是固定轨迹:- @echo off&mode con cols=60 lines=20
- setlocal enabledelayedexpansion
- title 调皮的汉字-zw19750516
- set code=23456789abcdef我是调皮的汉字&set "b= "
- set code1=%code:~14%&set d=-1
- :begin
- set n=0&set m=0&set x=+
- set /a lm=%random%%%59,lr=%random%%%2,c=%random%%%14,d+=1
- if %d% equ 7 set d=0
- set a=!code1:~%d%,1!&set c=!code:~%c%,1!
- color 0%c%
- if %lm% equ 0 (
- set z=+
- ) else (
- if %lm% equ 57 (
- set z=-
- ) else (
- if %lr% equ 0 (
- set z=-
- ) else (
- set z=+
- )))
- :contin
- cls&for /l %%i in (1,1,%n%) do echo.
- set "kong="
- set /a n%x%=1,lm%z%=1,m+=1
- if %n% equ 0 if %m% geq 100 goto begin
- if %lm% equ 0 set z=+
- if %lm% equ 57 set z=-
- for /l %%i in (1,1,%lm%) do set kong=!kong!%b%
- set str=%kong%%a%
- if %n% equ 20 set x=-&goto contin
- if %n% equ 0 set x=+&goto contin
- echo %str%&ping /n 127.1>nul
- goto contin
复制代码
|