importnumpyfrommatplotlibimportpyplotfrommatplotlibimportanimationdefupdate_points(num):point_ani.set_data(x[num],y[num])#更新点的位置,将这里的(x[num],y[num])替换