发布时间:2019-07-25 09:14:18编辑:auto阅读(2425)
>>> 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数据结构之列表
51322
50775
41369
38175
32660
29548
28391
23268
23236
21560
1638°
2371°
1977°
1916°
2245°
1951°
2646°
4436°
4274°
3044°