import numpy as np b=np.array([1.,2.,3.,4.]) print(b.dtype). 输出结果: float64. 用astype(int) 得到整数,并且不改变数组长度 import numpy as np ...
確定! 回上一頁