Python add 1d array to 2d array by column

前端 未结 0 1785
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 09:01

I have a 1d array and 2d array

a = [4,7,10]
b = [[1,2,3],[4,5,6],[7,8,9]]
a.shape = (2,)
b.shape = (3,3)

I want:

c = [[1,2,3,4],[4         


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