本帖最后由 思想之翼 于 2016-1-6 09:38 编辑
回复 2# aa77dd@163.com
自己修改的- @ECHO OFF&setlocal enabledelayedexpansion
- for /l %%i in (0,1,9) do set /a _%%i=%%i+1
- for /l %%i in (1,1,4) do (
- for /l %%j in (!_%%i!,1,5) do (
- set /an+=1
- set "$!n!=%%i %%j"
- )
- )
- for /l %%i in (0,1,9) do (
- for /l %%j in (0,1,9) do (
- set /a "$%%i_%%j=(%%i+%%j)%%10"
- )
- )
-
- for /l %%i in (1001,1,1252) do (
- set n=%%i
- md "c:/数据/数据1/!n:~1!" 2>nul
- )
- set n=1000
- for /l %%a in (1,1,9) do (
- for /l %%b in (!_%%a!,1,10) do (
- for /l %%c in (!_%%b!,1,10) do (
- for /l %%d in (!_%%c!,1,10) do (
- for /l %%e in (!_%%d!,1,10) do (
- set /an+=1
- for /l %%f in (100000,1,199999) do (
- set s=%%f
- for /f "tokens=1-10" %%0 in ("!$%%a! !$%%b! !$%%c! !$%%d! !$%%e!") do (
- for /f "tokens=1-5" %%i in ("!s:~%%0,1!_!s:~%%1,1! !s:~%%2,1!_!s:~%%3,1! !s:~%%4,1!_!s:~%%5,1! !s:~%%6,1!_!s:~%%7,1! !s:~%%8,1!_!s:~%%9,1!") do (
- set /a t=1!$%%i!!$%%j!!$%%k!!$%%l!!$%%m!
- >>"c:/数据/数据1/!n:~1!/!t:~1!.txt" set /p =!s:~1! <nul
- )
- )
- )
- )
- )
- )
- ))
- pause
复制代码
|