1. astype函数
>>> import numpy as np
>>> v1 = np.random.randint(-5, 5, (1, 2)).astype(np.float64)
>>> v1
array([[2., 1.]])
>>> v2 = np.random.randint(-5, 5, (2, 2)).astype(np.float64)
>>> v2
array([[1., 3.],
[2., 3.]])
2. dtype展示类型
>>> v2.dtype
dtype('float64')