发布时间:2019-09-07 08:10:53编辑:auto阅读(3838)
今天学了Python 绘制了一幅正弦曲线 哈哈
需要numpy Python 库的支持
>>>import numpy as np >>> import matplotlib.pyplot as plt >>> x=np.arange(-np.pi,np.pi,0.01) >>> y=np.sin(x) >>> plt.plot(x,y,'g') [<matplotlib.lines.Line2D object at 0x01AA20F0>] >>> plt.show()
关键字:
上一篇: python的logging模块详解
下一篇: Python 08 re 正则表达式
51345
50807
41400
38199
32690
29583
28415
23299
23257
21588
1665°
2399°
2006°
1941°
2272°
1972°
2677°
4475°
4305°
3069°