判断一个变量是否是numpy数组

    xiaoxiao2022-07-02  104

    使用下面代码即可

    if type(figure) is np.ndarray: figure=Image.fromarray(figure)

     

    最新回复(0)