np.int报错

np.int报错

np.int报错如下:DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe.

原因在于np.int在numpy1.20已经被废弃掉了,具体可以参考:.20.0-notes.html#deprecations

修改方法:

将 np.int 改为 np.int_ 或者 np.int32 或者 np.int64 。

发布者:admin,转转请注明出处:http://www.yc00.com/news/1693897483a741612.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信