How to generate all permutation of row permutations in 2D array in Python?

前端 未结 0 614
孤独总比滥情好
孤独总比滥情好 2020-12-06 17:53

There is an array:

[[1,2],
 [3,4]]

How can I generate a 2d array of all row-permutations? I expect a result like:

[[[1,2],
  [         


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