Python 将numpy array由浮点型转换为整型

Python 将numpy array由浮点型转换为整型

——使用numpy中的astype()方法可以实现,如:

猜你喜欢

转载自www.cnblogs.com/shenxiaolin/p/11313101.html
今日推荐