这个是做一夜暴富的辅助工具吧,呵呵
afan 发表于 2010-4-7 18:47
暴富不太可能,玩一玩乐趣也不少!
自己修改的,能输出:任意相邻2个数字之和大于9的次数和具体的结果。Dim $Str
$Str = FileRead("单双.txt")
$sR = StringRegExp($Str, '(\d+)', 3)
Dim $out = '', $zMax = 0
For $i = 0 To UBound($sR) - 2
$z = $sR[$i] + $sR[$i + 1]
If $z > $zMax Then $zMax = $z
If $z > 9 Then
$out &= $sR[$i] & '+' & $sR[$i + 1] & '=' & $z & @CRLF
EndIf
Next
For $i = 0 To $zMax - 10
$z = $zMax - $i
FileWriteLine("相邻2分析.txt", $z & "期 共出现(" & UBound(StringRegExp($out, $z, 3)) & ")次")
$s = StringRegExp($out, '(\d+\+\d+\=)' & $z, 3)
For $j = 0 To UBound($s) - 1
FileWriteLine("相邻2分析.txt", $s[$j] & $z & @CRLF)
Next
Next
再次感谢各位的帮忙啦! |