有没有更好/更简单的方法来检查对象是否为numpy float数组?
import numpy as np isinstance(x, np.ndarray) and issubclass(x.dtype.type, np.floating)