#include <array.au3>
Local $rows_A = 10
Local $rows_B = 4
Dim $array_A[$rows_A][4] = [[1, "001", "张三", ""], [2, "002", "李四", ""], [3, "003", "王五", ""], [4, "004", "赵六", ""], [5, "005", "钱七", ""], ["", "", "", ""], ["", "", "", ""], ["", "", "", ""], ["", "", "", ""], ["", "", "", ""]]
Dim $array_B[$rows_B][2] = [["001", "2023-08-23 18:59:13"], ["003", "2023-08-23 19:59:13"], ["001", "2023-08-23 20:59:13"], ["004", "2023-08-23 21:59:13"]]
Local $sStr_B = _ArrayToString($array_B, '|'), $aTime
For $i = 0 To UBound($array_A) - 1
If Not IsInt($array_A[$i][0]) Then ContinueLoop
$aTime = StringRegExp($sStr_B, '(?m)^' & $array_A[$i][1] & '\|(\d{4}\V+)', 3)
If Not @error Then
$array_A[$i][3] = $aTime[UBound($aTime) - 1]
Else
$array_A[$i][3] = "未登陆"
EndIf
Next
_ArrayDisplay($array_A, "签到列表", "", 0, "", "", "行号|序号|工号|姓名|最后登录时间")
|