newaxis to increase the dimension of one of the arrays so that NumPy can broadcast. In[2]: x1_new = x1[: , np.newaxis] # x1[: , None] # now, the ...
確定! 回上一頁