官方解释:`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
在自己的代码中,体现如下:
# txt_tags = np.array(txt_tags, dtype=np.bool) 应修改为第二行的
txt_tags = np.array(txt_tags, dtype=np.bool_)
2.解决AttributeError: module 'numpy' has no attribute 'int'.错误
把np.int改为np.int_
3.解决AttributeError: module 'numpy' has no attribute 'object'.错误
把np.object改为object