初学python,第一次尝试使用turtle画爱心~
这是画出来的效果
这是我的代码
import turtle
turtle.pensize(5)
turtle.pencolor("red")
turtle.left(90)
turtle.circle(50,180)
turtle.fd(30)
turtle.left(30)
turtle.fd(50)
turtle.goto(0,-120)
turtle.up()
turtle.goto(0,0)
turtle.down()
turtle.seth(90)
turtle.circle(-50,180)
turtle.fd(30)
turtle.right(30)
turtle.fd(50)
turtle.goto(0,-120)