import turtle
turtle.pencolor("red")
turtle.fillcolor("yellow")
turtle.begin_fill()
for i in range(50):
turtle.forward(200)
turtle.left(170)
turtle.end_fill()
turtle.showturtle()
turtle.write('I Love You,China')
运行效果如下:
import turtle
turtle.pencolor("red")
turtle.fillcolor("yellow")
turtle.begin_fill()
for i in range(50):
turtle.forward(200)
turtle.left(170)
turtle.end_fill()
turtle.showturtle()
turtle.write('I Love You,China')
运行效果如下: