这个问题出现的原因是np.roll 会调用shift参数:ex[i],ey[i]对Solid矩阵进行索引,而ex[i],ey[i]是浮点数,浮点数不能用于索引。
使用np.roll函数遇到slice indices must be integers or None or have an __index__ method
最新推荐文章于 2024-07-22 15:15:29 发布
这个问题出现的原因是np.roll 会调用shift参数:ex[i],ey[i]对Solid矩阵进行索引,而ex[i],ey[i]是浮点数,浮点数不能用于索引。