如何判断一个数组是ndarray

可以使用以下的代码进行判断

    if type(figure) is np.ndarray:

猜你喜欢

转载自blog.csdn.net/Aaron9489/article/details/130624908