发布时间:2019-07-25 09:14:18编辑:auto阅读(2535)
>>> 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数据结构之列表
51940
51731
42032
38874
33363
30327
28972
23988
23901
22262
417°
2605°
3283°
2734°
2721°
3474°
2686°
3514°
5802°
5589°