#numpy##数组类型修改

ndarray.astype(type)

import numpy as np
a = np.arange(0,100,4.3)
print(a)
print(a.astype(np.int32))

你可能感兴趣的:(#Numpy,numpy,python)