初学python,第一次尝试使用turtle画爱心~
这是画出来的效果
这是我的代码
// An highlighted block
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)
来源:CSDN
作者:_wonderfulgirl
链接:https://blog.csdn.net/weixin_45725376/article/details/104091762