1、报错:AttributeError: module 'numpy' has no attribute 'int'

解决办法:把np.int替换为np.int_np.int32或者np.int64 即可

2、报错:AttributeError: module 'numpy' has no attribute 'float'

解决办法:把np.float替换为float或者np.float64/np.float32 即可