上代码(挺简单的):可自己修改颜色

from turtle import *
setup(500,500)
pencolor('pink')
fillcolor('red')
begin_fill()

left(140)
forward(111.65)

for i in range(200):
    right(1)
    forward(1)

left(120)

for i in range(200):
    right(1)
    forward(1)
forward(111.65)

hideturtle()
end_fill()
done()

Python绘制心形图(动态)-编程知识网