How to tell if an array is ndarray

You can use the following code to judge

    if type(figure) is np.ndarray:

Guess you like

Origin blog.csdn.net/Aaron9489/article/details/130624908