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

[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]後沒有了警告,不過變化前後這個警告都沒有引起使用上的問題。