[numpy] ndarray.astype(np.float32) 变化数组类型

方法一
ndarray. astype (np.float32)
方法二
float_array = np. array ([1.23,3.14,5.12,3.23],dtype=float)

猜你喜欢

转载自blog.csdn.net/doufuxixi/article/details/80357444