来个另类的笨办法。#include <Array.au3>
Local $avArray[10000] ;一万个数
$begin = TimerInit()
For $i = 0 To UBound($avArray) - 1
$avArray[$i] = Random(1, 100, 1)
Next
$iStringa = _ArrayToString($avArray, @CRLF)
FileWrite("a.txt",$iStringa)
_ArrayDelete($avArray, Random(0, UBound($avArray) - 1, 1)) ;从数组中随机删除一个元素
$iStringb = _ArrayToString($avArray, @CRLF)
FileWrite("b.txt",$iStringb)
RunWait(@ComSpec & " /c " & "fc a.txt b.txt /a >1.txt",@ScriptDir,@SW_HIDE)
$aa=FileReadLine("1.txt",3)
If Not @error Then
FileDelete("a.txt")
FileDelete("b.txt")
FileDelete("1.txt")
EndIf
MsgBox(0,"用时"&TimerDiff($begin),$aa)
|