在调试过程中,pydevd warning: Computing repr of pet_data (ndarray) was slow (took 7.83s) Cstomize report timeout b,而且特别卡,每个step都会卡住几秒钟,翻遍了vscode 和nibabel的issue也没找到解决方案,最终灵机一动,在import 的位置发现了这个np.set_printoptions(precision=4, suppress=False,threshold=np.inf),因为把threshold设置为无限大了,所以每次调试精度特别高,会卡住,注释后恢复正常。