How to replace an array with an array of different shape

前端 未结 0 1993
囚心锁ツ
囚心锁ツ 2020-12-09 04:07

I\'m trying to replace the values of an array with another array of a different shape.

a = np.array([[0,1],
              [0,0,1]])

b = np.array([[0. 0. 0.],         


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