import matplotlib.pyplot as plt import numpy as np 入门 我们首先生成随机的数据: x = np.arange(1, 7) y = np.abs(np.random.randn(6)) 直接调