发布时间:2019-07-25 09:14:18编辑:auto阅读(2530)
>>> 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数据结构之列表
51927
51698
42017
38855
33343
30314
28953
23968
23884
22250
374°
2587°
3259°
2710°
2698°
3426°
2655°
3493°
5754°
5534°