import numpy as np
a=np.zeros([3,10])
b=a[a[:,0]>0]
b.shape
(0, 10)
python numpy会出现shape等于0
最新推荐文章于 2024-08-13 10:58:13 发布
import numpy as np
a=np.zeros([3,10])
b=a[a[:,0]>0]
b.shape
(0, 10)