[转载]几个有用的python函数 (笛卡尔积, 排列, 组合)

转载自:http://www.tuicool.com/articles/vIRryi

product 笛卡尔积

permutations 排列

combinations 组合,没有重复

combinations_with_replacement 组合,有重复

 

 

Leave a Reply

Your email address will not be published.