发布时间:2019-07-25 09:14:18编辑:auto阅读(2239)
>>> 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数据结构之列表
49253
48420
39144
36241
30650
27458
26451
21282
21127
19477
94°
300°
298°
398°
639°
448°
1129°
1113°
1099°
1093°