numpy.array([])默认类型是float64
    image.png
    如果想要将float64转换为int类型,那么就要在后面加上astype(np.int32)
    image.png