- @echo off&setlocal enabledelayedexpansion
- set "code=19#3 1#3 50#2 $ 1#0 3#3 20#3 $ 3#5 20#3 1#1 2#1"
- for /f "skip=1" %%i in ('help') do set /a n+=1&set "_!n!=%%i"
- for %%a in (%code%) do (
- for /f "tokens=1,2 delims=#" %%i in ("%%a") do (
- if "%%i" equ "$" (
- set /p= <nul
- ) else (
- set "str=!_%%i!"
- set /p=!str:~%%j,1!<nul
- )
- )
- )
- pause>nul
复制代码 结果:
YOU ARE BEST |