长贴凑趣》据LZ三楼回复之意,顺借本题复习一下纯P伪数组的用法...- @echo off
- for %%n in (2,4,8,10) do set "[%%n]=%%n" &::建立伪数组 [n]=n 对应行序号
- set "n=0" &setlocal enabledelayedexpansion
- (for /f "delims=" %%s in (33.txt) do (
- set/a "n+=1" &for %%k in (!n!) do set "An=![%%k]!"
- if !An! equ !n! echo,%%s
- ))>44.txt
复制代码
|