返回列表 发帖
  1. @echo off
  2. set /p str=请输入字符:
  3. :begin
  4. set a=%str:~0,1%
  5. if  not %a%==0 (goto eof) else ( set %a%==""&&set str=%str:~1%&&goto begin )
  6. :eof
  7. echo %str%
  8. pause
复制代码

[ 本帖最后由 cainiao736 于 2009-3-26 22:33 编辑 ]

TOP

返回列表