target_array=np.loadtxt(target_list)target=['target_{0}.fits'.format(i) for i in range(1,N+1,1)]hdudata=[]hdu.append(pyfits.open(target[i]))f=[] for j in r
我有一段我认为可以工作的代码,但是第9行(for k in range(2,res[j]):)一直返回错误:"IndexError: list indexout of range“。def find_primes(num): print(num)
if num%i==0:res.append(i)
for k in range<