发布时间:2019-07-25 09:14:18编辑:auto阅读(2209)
>>> 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数据结构之列表
48909
47998
38769
35904
30326
27097
26111
20944
20766
19123
624°
698°
674°
678°
650°
622°
709°
765°
902°
1076°