返回列表 发帖
前辈们的身影,看起来都很熟悉。
晚辈就算模仿一下吧,
@echo off
setlocal enabledelayedexpansion
for %%i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do (
set /a count+=1
set %%i=!count!
set !count!=%%i
)
set /p input=输入两个顺序字母:
cls
for /l %%i in (!%input:~0,1%!,1,!%input:~1,1%!) do echo !%%i!
pause>nulCOPY
静水流深...

TOP

回复 11楼 的帖子

set %%i=!count!
set !count!=%%i

这里是把数字和字母之间联系起来,建立等价关系。
就是提到1就会显示A,提到A就会显示1.
静水流深...

TOP

返回列表