📅  最后修改于: 2022-03-11 14:45:43.068000             🧑  作者: Mango
代码示例1
import itertools
def allSubArrays(xs):
n = len(xs)
indices = list(range(n+1))
for i,j in itertools.combinations(indices,2):
yield xs[i:j]