1. 画基本的图 import matplotlib.pyplot as pltimport numpy as npx = np.linspace(-1,1,50)y = 2*x+1plt.plot(x,y)plt.show() 2. figure 的用法 相关文章: