回复 1# 我们组队吧
演示你给定内容的代码:- @echo off&Title .&setlocal EnableDelayedExpansion
- for /f "delims=" %%i in (b.txt) do set/a a+=1&set "#_!a!==%%i"
- (for /f "delims=" %%i in (a.txt) do (
- echo,%%i
- set/a b+=1
- set/a c=!b!%%10
- if "!c!"=="0" (
- set/a d+=1
- for /f "tokens=1* delims==" %%a in ('set #_!d!') do echo,%%b
- )
- ))>>c.txt
- pause
复制代码
|