... 中的数据类型转换,不能直接改原数据的dtype,只能用函数astype()。 ... import numpy as np a=np.random.random (4) a.dtype ="float32" ...
確定! 回上一頁