发布时间:2019-07-25 09:14:18编辑:auto阅读(2421)
>>> 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数据结构之列表
51295
50745
41342
38154
32624
29522
28372
23243
23211
21534
1608°
2342°
1942°
1883°
2213°
1929°
2613°
4390°
4233°
3005°