生成排列可以用product:. from itertools import product l = [1, 2, 3] print list(product(l, l)) print list(product(l, repeat=4)). 组合的话 ...
確定! 回上一頁