np.mat不显示出for 表达式递归循环里的值,然而array可以
np.mat(y.reshape(sample_size, 1))print(np.mat(y.reshape(sample_size, 1)).shape)
maty=np.mat(np.mat(y.reshape(sample_size, 1)))
print('value of maty is')
print(maty)
print('##############')
print(maty.shape[0])
print(np.array([maty[i] for i in range(maty.shape[0])]))
print('expression by matrix')
print(np.mat(maty[i] for i in range(maty.shape[0])))
请问这里的mat为什么不能显示出maty[i] for i in range(maty.shape[0])里的值,而array口可以?