Python列表和numpy矩阵之间有什么区别

时间:2014-01-31 11:03:44

标签: python python-3.x numpy

有什么区别:

x = [1, 4, 3];
print('x = ')
print(x)
y = [0, -1, -2];
print('y = ')
print(y)

x = numpy.matrix('1;2;3') 
print('x = ')
print(x)
y = numpy.matrix('0;-1;-2')
print('y = ')
print(y)

0 个答案:

没有答案