numpy的astype, dtype

astype用于数据类型转换。astype不会in place地改变一个ndarray,换句话说,每次使用astype,都会产生一个新的数组。

dtype用于查看数组中的元素的数据类型

猜你喜欢

转载自www.cnblogs.com/picassooo/p/12556161.html
今日推荐