本帖最后由 pclq 于 2017-3-20 17:50 编辑
请教一下各位大神是这样的,IF判断我这段代码只有我爱你输入或者不爱你会有结果,假设其他比如”你猜“”不告诉“之类的我想让IF判断除了我爱你和不爱你有输出其它的文字都只输出”*“号里面的内容该怎么写- @echo off
- color 0A
- set /p input=请输入我爱你或不爱你:
- if "%input%"=="我爱你" goto 1
- if "%input%"=="我不爱你" goto 2
- if "%input%"=="*" goto *
- pause
- exit
-
-
- :1
- echo [][][][][][][][][][][][][][][][][][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] 我也是(。’▽’。) [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][][][][][][][][][][][][][][][][][][]
-
- pause
- exit
-
- :2
- echo [][][][][][][][][][][][][][][][][][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] (っ╥╯﹏╰╥c) [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] 我要静静 [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][][][][][][][][][][][][][][][][][][]
- set /p input=再给你次机会爱不爱我:
- if "%input%"=="爱" goto 1
- if "%input%"=="不爱" goto no love
-
- pause
- exit
-
- :*
- echo [][][][][][][][][][][][][][][][][][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] (ー`′ー) [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] 别想糊弄我 [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][][][][][][][][][][][][][][][][][][]
-
- pause
- exit
-
- :no love
- echo [][][][][][][][][][][][][][][][][][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] (;へ:) [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] 知道了我消失去5555 [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][] [][][][][][]
- echo [][][][][][][][][][][][][][][][][][][][][][]
复制代码
|