使用plot方法完成f(x)=x2sinx函数图形的绘制,其中x=np.linspace(0,2,100)自动生成
import matplotlib.pyplot as plt x = np.linspace(0,2,100) y = x**2 * np.sin(x) plt.plot(x,y)