白云岛资源网 Design By www.pvray.com
复制代码 代码如下:
@echo off
:: 去掉字符串头所有的0
::
for /f "delims=0 tokens=*" %%i in ("0009029") do echo %%i
pause>nul
goto :eof
@echo off
:: code by jm 2006-10-20 CMD@XP
set var=0002304500
:intercept
set var=%var:*0=%
if "%var:~0,1%"=="0" goto intercept
echo %var%
pause
@echo off
:: 去掉字符串头所有的0
::
set x=00010280
call :sub %x%
echo %y%
pause
goto :EOF
:sub
set y=%1
if "%y:~0,1%"=="0" call :sub %y:~1%
goto :EOF
@echo off
:: 去掉字符串头所有的0
:: set count=-1必须用-1而不能用0
::
set num=0003
set count=-1
setlocal enabledelayedexpansion
:loop
set /a count+=1
if "!num:~%count%,1!"=="0" goto loop
echo !num:~%count%!
pause
@echo off
:: 去掉字符串头所有的0
::
for /f "delims=0 tokens=*" %%i in ("0009029") do echo %%i
pause>nul
goto :eof
@echo off
:: code by jm 2006-10-20 CMD@XP
set var=0002304500
:intercept
set var=%var:*0=%
if "%var:~0,1%"=="0" goto intercept
echo %var%
pause
@echo off
:: 去掉字符串头所有的0
::
set x=00010280
call :sub %x%
echo %y%
pause
goto :EOF
:sub
set y=%1
if "%y:~0,1%"=="0" call :sub %y:~1%
goto :EOF
@echo off
:: 去掉字符串头所有的0
:: set count=-1必须用-1而不能用0
::
set num=0003
set count=-1
setlocal enabledelayedexpansion
:loop
set /a count+=1
if "!num:~%count%,1!"=="0" goto loop
echo !num:~%count%!
pause
白云岛资源网 Design By www.pvray.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
白云岛资源网 Design By www.pvray.com
暂无评论...