发布时间:2019-07-25 09:14:18编辑:auto阅读(2920)
>>> 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数据结构之列表
54418
41183
35703
31268
26169
25888
24379
19921
15963
15410
2279°
2084°
2175°
2297°
2258°
2472°
2405°
2224°
2303°
2277°