先奉上正弦曲线的:
@echo off&setlocal enabledelayedexpansion(:loopfor %%i in (30 46 55 59 60 59 55 46 30 14 5 1 0 1 5 14) do ( for /l %%j in (1 1 %%i) do ( set "str=!str! " ) echo !str!#&set str= for /l %%i in (1 1 600) do qdj 2>nul)goto loop) |
根据悬崖之树的代码改造而成,可以说是真正的抛物线了。
函数解析式:f(x)=-x2-1
@echo offmode con lines=40 cols=80setlocal enabledelayedexpansionset ctr=0set "spc= "for %%a in (65 33 17 9 5 3 2 3 5 9 17 33 65) do (set /a ctr=ctr+4set ln=%%afor /l %%b in (1,1,!ln!) do ( echo=)for /l %%b in (0,1,!ctr!) do ( set "spc=!spc! ")echo !spc!Oping 127.1 -n 1 >nulping 127.1 -n 1 >nulping 127.1 -n 1 >nulset "spc= "if !ctr! gtr 56 goto:fcls):fpause>nulexit |
新闻热点
疑难解答