#subok

numpy.ones_like(a, dtype=None, order='K', subok=True)返回和原矩阵一样形状的1矩阵

Returnanarrayofoneswiththesameshapeandtypeasagivenarray.Parameters:a :array_likeTheshapeanddata-typeof a definethesesameattributesofthereturnedar...