np.object
was a deprecated alias for the builtin object
. To avoid this error in existing code, use object
by itself. Doing this will not modify any behavior and is safe.
高版本的numpy np.object弃用了,把np.object改成object,或者降低numpy版本
module ‘numpy‘ has no attribute ‘object‘.
最新推荐文章于 2024-05-05 11:09:59 发布