首先都得导模块. import numpy as np import pandas as pd import matplotlib.pyplot as plt from pandas import Series,DataFrame 一.绘制单线图 1,直线图 x=[1,2,3,4,5] y=[2,4,6,8,10] plt.plot(x,y) 2,抛物线 x = np.arange(-np.pi,np.pi,0.2) y = x**2 plt.plot(x,y) 3,正弦图 x = np.ara