python数组切片
# encoding:utf-8
from numpy import array,max,min
from math import log10
from matplotlib.pyplot import (plot,show,xlabel,ylabel,xlim,ylim)
a=[]
for i in range(1,100000):
a.append((i/100,log10(i/100)))
a=array(a)
a1=a[...,0] #切出来第一列
a2=a[...,1] #切出来第二列
a1=a1.tolist()
a2=a2.tolist()
plot(a1,a2)
xlabel("x")
ylabel("y")
xlim(min(a1),max(a1))
ylim(min(a2),max(a2))
show()