简单一点(结果在str中):<br>str := '00012345';<br>while (Length(str) > 1) and (str[1] = '0') do Delete(str,1,1);<br><br>效率一点(结果在str中):<br>str := '00012345';<br>iLen := Length(str);<br>if iLen = 1 then Exit;<br>iIndex := 1;<br>while (iLen > iIndex) and (str[iIndex] = '0') do Inc(iIndex);<br>Delete(str,1,iIndex - 1);