Python爱心跳动代码 python import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation # 爱心线的参数方程 def heart_shape(t, scale=1): x = 16 * np.sin(t) ** 3 y = -(13 * np.cos(t)