关于numpy的astype(bool)和astype(int)等等 - CSDN
https://blog.csdn.net/wuxulong123/article/details/10338722204.12.2019 · 关于numpy的astype(bool)和astype(int)等等import numpy as npa=[[1,2,1],[2,3,5]]b=[[0,0,0],[2,3,5]]c=np.array(a)d=np.array(b)print(c)print(d)就是简单的把list列表转化为数组然后看看加了.astype(bool)是什么意思?正如astype的中文意思,...