发布时间:2019-07-25 09:14:18编辑:auto阅读(2475)
>>> import itertools
>>> list(itertools.combinations('abc', 2))
[('a', 'b'), ('a', 'c'), ('b', 'c')]
>>> list(itertools.permutations('abc',2))
[('a', 'b'), ('a', 'c'), ('b', 'a'), ('b', 'c'), ('c', 'a'), ('c', 'b')]
>>>
上一篇: Python中的整除
下一篇: Python学习之day3数据结构之列表
51622
51229
41710
38478
32961
29958
28643
23618
23547
21896
2069°
2775°
2319°
2251°
2752°
2271°
3041°
4979°
4842°
3449°