如何使用Python产生一个数组,数组的长度为1024,数组的元素全为0?
如何产生一个2×1024的全0矩阵呢?是否是zeros(2,1024) ?
三维数据是否使用三层括号?试一试,果然可以正确输出!试猜一猜, 下述三层括号中的数字分别代表什么含义?
In [9]: zeros(((2,2,3))) Out[9]: array([[[ 0., 0., 0.], [ 0., 0., 0.]],
[[ 0., 0., 0.], [ 0., 0., 0.]]])
诡异错误二:TypeError: data type not understood
原文:http://www.cnblogs.com/quintin/p/7376550.html