Python3中的出现的错误
1. list indices must be integers or slices, not float
2. ‘float’ object cannot be interpreted as an integer
可能是代码在python2中采用a/b
于是在python3中应该采用a//b即可解决错误
关于python3&python2不同版本导致错误的可能解决方案1
最新推荐文章于 2023-08-10 16:34:42 发布
Python3中的出现的错误
1. list indices must be integers or slices, not float
2. ‘float’ object cannot be interpreted as an integer
可能是代码在python2中采用a/b
于是在python3中应该采用a//b即可解决错误