bat批处理(3位):
@echo off rem 双引号也可不加 set "str=a b c d e f g h i j k l m n o p q r s t u v w x y z" for %%1 in (%str%) do ( for %%2 in (%str%) do ( for %%3 in (%str%) do (echo %%~1%%~2%%~3>>3.txt) ) )
bash(3位):
echo {a..z}{a..z}{a..z}>字典.txt
python(3位):
import itertools list("".join(x) for x in itertools.product('abcdefghijklmnopqrstuvwxyz', repeat=3))
参考: