懒虫阿布 当前离线
上等兵
@echo off setlocal enabledelayedexpansion ::%1 字符串 set str=%1 set strLen=0 :StartLoop if "%str%"=="" goto EndLoop set str=!str:~1! set /a strLen+=1 goto StartLoop :EndLoop echo %1 length is !strLen!复制代码
TOP