python绘制简单折线图代码示例 1.画最简单的直线图代码如下:importnumpyasnpimportmatplotlib.pyplotaspltx=[0,1]y=[0,1]plt.figure()plt.plot(x 绘制折线图