How to add prefixes and suffixes to permutations in Python?

后端 未结 0 1661
温柔的废话
温柔的废话 2020-12-22 02:11

I\'m trying to make a list of permutations prefixed by X and suffixed by Y. Here are a few examples of what I\'ve tried.


perm = permutations ([1,2,3], 3)

fo         


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