itertools.combinations(list,num)

python list 排列组合_Python