下面是一段代码,可以用来画出心形:
import numpy asnp
import matplotlib.pyplot as plt
t = np.linspace(0, 2*np.pi, 1000)
x = 16 * np.sin(t) ** 3
y = 13 * np.cos(t) - 5 * np.cos(2*t) - 2 * np.
下面是一段代码,可以用来画出心形:
import numpy asnp
import matplotlib.pyplot as plt
t = np.linspace(0, 2*np.pi, 1000)
x = 16 * np.sin(t) ** 3
y = 13 * np.cos(t) - 5 * np.cos(2*t) - 2 * np.