>>> listMax=[] >>> i=0 >>> j=0 >>> >>> while i<10: ... while j<10: ... d=abs(list_initial[i]-list_initial[j]).max() ... listMax.append(d) ... j=j+1 ... i=i+1 ... >>> >>> listMax [0.0, 1.653936494127882, 0.71496036431101384, 0.55047599121246971, 0.97650531286894926, 0.22584233947870302, 0.39368112947658396, 0.78142550568467184, 0.22282862934663961, 0.13049151805132664]
数据是一个10*107的矩阵
___C___
慕工程3528143
相关分类