@echo off
echo 1.function 1
echo 2.function 2
echo 3.function 3
echo.&echo.
set /p a=input choice:
if "%a%"=="1" Goto function1
if "%a%"=="2" Goto function2
if "%a%"=="3" Goto function3
:function1
echo 1
goto end
:function2
echo 2
goto end
:function3
echo 3
goto end
:end
echo complete
执行后,结果是这样
image.png
网友评论