Is there any function in numpy, in which a particular slice of that array is replaced with other values, and a copy is returned

前端 未结 0 1622
不知归路
不知归路 2020-11-28 02:16
>>> import numpy as np
>>> x1 = np.array([[3, 5, 9], [5, 9, 1]])
>>> x1
array([[3, 5, 9],
       [5, 9, 1]])
>>> x1[:, 1:] = np.a         


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