这是我的,根据悬崖之树的代码改造而成,可以说是真正的抛物线了。
函数解析式:f(x)=-x2-1- @echo off
- mode con lines=40 cols=80
- setlocal enabledelayedexpansion
- set ctr=0
- set "spc= "
- for %%a in (65 33 17 9 5 3 2 3 5 9 17 33 65) do (
- set /a ctr=ctr+4
- set ln=%%a
- for /l %%b in (1,1,!ln!) do (
- echo=
- )
- for /l %%b in (0,1,!ctr!) do (
- set "spc=!spc! "
- )
- echo !spc!O
- ping 127.1 -n 1 >nul
- ping 127.1 -n 1 >nul
- ping 127.1 -n 1 >nul
- set "spc= "
- if !ctr! gtr 56 goto:f
- cls
- )
- :f
- pause>nul
- exit
复制代码
|