举个栗子- @echo off
- setlocal enabledelayedexpansion
- set str=0.20000000000.00000000000.0000000000-0.2000000000405000.10000000003290999.8999999999
- (for /l %%a in (0 1 1000) do (
- set /p=!str:~%%a,1!
- if "!str:~%%a,1!" equ "." (
- set n=
- ) else if "!str:~%%a,1!" equ "" goto :quit
- set /a n+=1
- if !n! equ 11 echo;
- ))<nul
- :quit
- pause
复制代码
|