How to duplicate elements in a nested list (Python)

后端 未结 0 1052
醉梦人生
醉梦人生 2020-12-10 19:30

I have a nested list that looks like this: [[1,2,3],[4,5,6],[7,8,9]]. I want to duplicate each element in each inner list by 3 and place them side to side as such: [[1,1,1,2

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