发布时间:2019-07-25 09:14:18编辑:auto阅读(2693)
>>> 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数据结构之列表
52710
39713
34088
29838
24736
24569
22948
16330
14608
14112
328°
326°
401°
396°
430°
574°
541°
567°
643°
566°