import numpy as np
import mpl_toolkits.axisartist as ast
from matplotlib import pyplot as plt
x1=[2,5,3,1]
y1=[4,7,3,4]
x2=[1,2,3,4]
y2=[2,3,4,5]
x3=np.random.randint(0,5,8)
y3=np.random.randint(0,5,8)
plt.scatter(x1,y1,marker='o',color='red',s=40,label='面包')
plt.slow()
第15行写错了 plt.slow() -> plt.show()