Python function to return list of lists by only swapping the same indices

前端 未结 0 1871
天涯浪人
天涯浪人 2021-01-18 06:26

I have two lists of 5 elements. I want to use itertools or a python code returns a list of 5 elements that consist of all permutations of the list, by only swapping elements

相关标签:
回答
  • 消灭零回复
提交回复
热议问题