发布时间:2019-07-25 09:14:18编辑:auto阅读(2621)
>>> 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数据结构之列表
52414
52338
42445
39346
33811
30761
29515
24435
24294
22664
193°
199°
201°
236°
194°
326°
320°
340°
340°
390°