ul:nth-child(2) li:nth-child(1){
background-color: yellow;
}
以下是获得A3的Acini代码:
A1
1) Brian_Nutter
2) Jesus_Crist
3) Mai_Lau
4) Fuckedinthehead_Feminist
A2
4652389165
6666666666
1261784530
6751248900
REM the following array is what's desired
A3
1) Brian_Nutter 4652389165
2) Jesus_Christ 6666666666
3) Mai_Lau 1261784530
4) Fuckedinthehead_Feminist 6751248900
输出:
@echo off
setlocal EnableDelayedExpansion
rem Load first file into A1 array:
set i=0
for /F "delims=" %%a in (A1.txt) do (
set /A i+=1
set A1[!i!]=%%a
)
rem Load second file into A2 array:
set i=0
for /F "delims=" %%a in (A2.txt) do (
set /A i+=1
set A2[!i!]=%%a
)
rem At this point, the number of lines is in %i% variable
rem Merge data from both files and create the third one:
for /L %%i in (1,1,%i%) do echo !A1[%%i]! !A2[%%i]!>> A3.txt
这里的主要问题是,当第二个数组(A2)的字符串与第一个数组(A1)的字符串连接时,数组A3变得一团糟,因为A2中的字符串的对齐放置在A3取决于A1 中字符串的长度。仅在 A1的所有字符串大小相同的特殊情况下,我们得到所需的整齐输出数组。 那我们该如何解决这个问题呢? 一种可能的方法(我在这个例子中尝试过)将是在A1中通过填充来均衡字符串.IOW找出最大值。 A1中任何字符串中的字符,然后使用“ - ”或“_”
填充其他字符串PS:假设我们只有记事本!