安装python(x,y)软件地址:http://python-xy.github.io,800多M
本地安装,选择c盘,改为full模式
import numpy as np
import scipy as sp
import pylab as pl
x = np.linspace(0, 4*np.pi,100)
pl.plot(x, np.sin(x))
Out[5]: [<matplotlib.lines.Line2D at 0x6091870>]

from scipy import signal
t = np.linspace(0, 10, 1000)
x = signal.chirp(t, 5, 10, 30)
pl.plot(t,x)

np.fromfunction(lambda i,j:(i+1)*(j+1),(9,9),dtype=int)

网友评论