2016年3月18日 — 将numpy array由浮点型转换为整型,使用numpy中的astype()方法可以实现。 ... 布尔转int y.astype(np.int)#np数组使用这个转换为int np.array(x ...
確定! 回上一頁