1>>> np.array([[1, 2], [3, 4]])
2array([[1, 2],
3 [3, 4]])
4#np.matrix is no longer recommended!
1>>> import numpy as np
2>>> a = np.array([2,3,4])
3>>> a
4array([2, 3, 4])
5>>> a.dtype
6dtype('int64')
7>>> b = np.array([1.2, 3.5, 5.1])
8>>> b.dtype
9dtype('float64')
10