强大的工具:
无限循环迭代:count、cycle、repeate
有限循环迭代:
chain:把几个迭代器组合起来
accumulate:迭代运算结果,未指定运算符则为sum
groupby:按key分组重复元素
3、组合
product:生成笛卡尔积
permutations:生成排列
combinations:生成组合
combinations_with_replacement:生成包含重复自身的组合,例如(1,1)
强大的工具:
无限循环迭代:count、cycle、repeate
有限循环迭代:
chain:把几个迭代器组合起来
accumulate:迭代运算结果,未指定运算符则为sum
groupby:按key分组重复元素
3、组合
product:生成笛卡尔积
permutations:生成排列
combinations:生成组合
combinations_with_replacement:生成包含重复自身的组合,例如(1,1)