Perl 当前离线
中尉
jellyhk 当前离线
少校
@echo offsetlocal EnableDelayedExpansionset n=0for /f "delims=" %%a in (a.txt) do ( set /a n+=1 if !n! == 3 ( echo %%a >>b.txt for /f "delims=" %%b in (b.txt) do (echo %%b>>c.txt)) else (echo %%a>>c.txt)) COPY
TOP
sxw (^_^)当前离线
少尉
use strict;use warnings; open FH,"<","a.txt" or die;open B,"<","b.txt" or die;my @b=<B>;open OUT,">","c.txt" or die; while (<FH>) { print OUT @b if $_=~/^bathome$/; print OUT $_;}COPY
评分人数