import numpy as np
from matplotlib import pylab
%pylab
from matplotlib.animation import FuncAnimation
import matplotlib.animation as animation
from matplotlib.patches import Circle, Rectangle
import matplotlib.lines as mlines
import matplotlib.image as mpimg
from matplotlib.patches import Circle, Rectangle,Ellipse
fig = plt.figure()
ax = fig.add_subplot(111)
s=Ellipse((0.5,0.5),0.2,0.5)
ax.add_patch(s)
shapes.append(s)
(最好安装anaconda,因为下载好这些其他python需要的东西它会自动帮你下载的)