绘制折线图 使用numpy产生[0,10]的随机数50个 import numpy as np from matplotlib import pyplot as plt x= np.arange(50) y =np.random.randint(0,10,50) fig, ax=plt.subplots() ax.plot(x,y) plt.show