# -*- coding: utf8 -*-from numpy import*a=arange(15).reshape(3,5)print aprint a.shapeprint a.ndimprint a.dtype.nameprint a.sizeprint type(a)b=array([15,16,17])print bprint type(b)
[[ 0 1 2 3 4]
[ 5 6 7 8 9] [10 11 12 13 14]](3, 5)2int3215<type 'numpy.ndarray'>[15 16 17]<type 'numpy.ndarray'>