#53859: Python itertools.product


zifuzhang6@gmail.com (資處31505 張子夫)


先把S中所有長度為L的子字串存成set,然後itertools.product(K, repeat=L)