发布时间:2019-07-25 09:14:18编辑:auto阅读(2202)
>>> 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数据结构之列表
48866
47934
38709
35858
30285
27039
26072
20904
20700
19067
502°
596°
604°
611°
587°
572°
637°
711°
830°
928°