[Bug集合]VisibleDeprecationWarning: converting an array with ndim > 0 to an index will result in...

VisibleDeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future
网上各种解决好像都不行,感觉可以试一下这个
https://stackoverflow.com/questions/12444316/typeerror-only-integer-arrays-with-one-element-can-be-converted-to-an-index
我添加完[0]后没有了警告,不过变化前后这个警告都没有引起使用上的问题。

猜你喜欢

转载自blog.csdn.net/unlimitedai/article/details/84103122