matplotlib 发表于 2026-02-18 分类于 语言 , Python , 框架 12345678import matplotlib.pyplot as pltimport numpy as npxpoints = np.array([0, 6])ypoints = np.array([0, 100])plt.plot(xpoints, ypoints)plt.show()