跟进自here,我不断溢出。所以我试图提出一个异常(exception),以便我确切地知道哪里出了问题。我有这样的东西:@jitdeftrain_function(X,y,H):np.seterr(over="raise",under="raise",invalid="raise")#dosomestuff,startadoubleloop,andthendo:try:z[i,j]=math.exp(-beta[j,i])exceptOverflowError:print"Calculationfailed!z[i,j]=math.exp(-beta[j,i]),j:"+str(j)+