cainiao736 当前离线
二级士官
@echo off set /p var1=请输入字符串: set n=0 set var=%var1% # :begin set /a n+=1 set /a m=%n%+2 for /f "tokens=%n%,%m%" %%i in ("%var%") do ( if "%%j"=="#" (echo %%i) else (goto begin)) pause复制代码
TOP