已知:x[1],y[1];x[2],y[2] ,运用python 连接两点 import matplotlib.pyplot as plt plt.plot([x[1], x[2]], [yy[1],yy[2]],linewidth=0.5)