配列が ndarray かどうかを確認する方法

次のコードを使用して判断できます

    if type(figure) is np.ndarray:

おすすめ

転載: blog.csdn.net/Aaron9489/article/details/130624908