1. 程式人生 > >成功解決TypeError: ‘float’ object cannot be interpreted as an index

成功解決TypeError: ‘float’ object cannot be interpreted as an index

解決問題

TypeError: ‘float’ object cannot be interpreted as an index

 

解決方法

因為程式設計程式碼使用的numpy版本不一樣導致,只需要降級或者升級至最新版即可!

pip install -U numpy==1.11.0

 

相關文章

https://blog.csdn.net/u011148366/article/details/66478356?utm_source=itdadao&utm_medium=referral