发布时间:2019-07-25 09:14:18编辑:auto阅读(2603)
>>> 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数据结构之列表
52335
52236
42384
39272
33743
30699
29437
24365
24241
22614
91°
106°
112°
125°
114°
222°
210°
227°
227°
272°