发布时间:2019-07-25 09:14:18编辑:auto阅读(2302)
>>> 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数据结构之列表
50025
49279
39940
36980
31377
28219
27177
21969
21915
20251
312°
262°
244°
420°
420°
1026°
1926°
1793°
1442°
2886°