Python动态画函数图
import matplotlib.pyplot as pltimport mathax = []ay = []plt.ion()'''for i in range(100): ax.append(i) ay.append(math.sin(i)) plt.clf() plt.plot(ax,ay) plt.pause(0.1) plt.ioff()'''i = -3.14while i < 3.14: ax.append(i...
原创
2021-06-11 16:44:53 ·
731 阅读 ·
2 评论