1.N_Elements()函数获取数组的行列 a=indgen(50,60) ncol=N_Elements(a[*,0]) nrow=N_Elements(a[0,*]) print,ncol print,nrow 50 60