sweet惜缘 当前离线
二级士官
评分人数
codegay 当前离线
少校
TOP
pcl_test 当前离线
荣誉版主
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in ('type "data.txt"') do ( set a= set b= for %%b in (%%a) do ( set "str=%%b" set "a=!a!!str:~,1! " set "b=!b!!str:~,3! " ) if defined a (>>1.txt echo;!a:~,-1!) if defined b (>>2.txt echo;!b:~,-1!) ) pause复制代码