发布时间:2019-07-25 09:14:18编辑:auto阅读(2427)
>>> 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数据结构之列表
51338
50794
41385
38187
32677
29572
28409
23288
23249
21577
1658°
2385°
1991°
1931°
2260°
1964°
2660°
4464°
4294°
3060°