发布时间:2019-07-25 09:14:18编辑:auto阅读(2468)
>>> 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数据结构之列表
51590
51175
41678
38442
32928
29910
28617
23578
23513
21863
2017°
2728°
2280°
2207°
2680°
2234°
2980°
4915°
4770°
3391°