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

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

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

 

 

posted on 2019-08-07 09:09  CuriousZero  阅读(47880)  评论(1编辑  收藏  举报

导航