使用plt.axvline()方法: import numpy as npimport matplotlib.pyplot as pltx = np.random.normal(600, 20, 1000)plt.hist(x, bins=50, color='g')plt.axvline(550)plt.axvline(620)plt.show() 参考来源:https://www.zhihu.com/question/57461549
...全文