发布时间:2019-07-25 09:14:18编辑:auto阅读(2420)
>>> 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数据结构之列表
51272
50713
41317
38129
32591
29499
28351
23214
23184
21507
1584°
2304°
1912°
1853°
2173°
1896°
2587°
4324°
4176°
2980°