如何在Python中找到包含3个元素的列表的所有排列?
例如,输入
[1, 2, 3, 4]
会回来的
[1, 2, 3] [1, 2, 4] [1, 3, 4] [2, 3, 4]
谢谢!
python combinations list permutation
combinations ×1
list ×1
permutation ×1
python ×1