Global $text = ['A', 'a', 'B', 'b','C' ,'c', '1', '2', '3']
Const $num = Floor(UBound($text) - 1)
Global $a ,$b ,$c ,$d ,$e
For $a = 0 To $num
For $b = 0 To $num
For $c = 0 To $num
For $d = 0 To $num
For $e = 0 To $num
ConsoleWriteError($text[$c] & $text[$b] & $text[$a] & $text[$e] &@CRLF )
;~ FileWrite('text.txt' ,@CRLF & $text[$c] & $text[$b] & $text[$a] & $text[$e])
Next
Next
Next
Next
Next
ConsoleWriteError("在 "& $num & "位 字符'"&$text &"'中共有" &$a * $b *$c * $d * $e & '种组合 可能')
;~ For $a = 0 To 9
;~ For $b = 0 To 9
;~ For $c = 0 To 9
;~ For $d = 0 To 9
;~ For $e = 0 To 9
;~ ConsoleWriteError(@CRLF & $a & $b & $c & $d &$e)
;~ Next
;~ Next
;~ Next
;~ Next
;~ Next
|