若干 Spyder 编译器中的常见问题 bug
1、错误提示:Missing parentheses in call to 'print'. Did you mean print(temp)?

2、解决方法:将第37行的“print temp”修改为“print(temp)”

3、错误提示:only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

4、解决方法:将第72行的“data[:, ix, iy]”修改为“data[:,np.int32(ix),np.int32(iy)]”
5、再次报错,跟上次一样的错误

6、这次修改第罩宿73行即可
7、再错宙痕脾:NameError: name 'StringIO' is not defined

8、将第141行的“StringIO.StringIO()”修改为“io.StringIO()”

9、再次报游五错:
line 85, in sampleFromGtNoBack
redata[i, :] = data[:, ix, iy]
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:194
阅读量:88
阅读量:153
阅读量:178
阅读量:101