练习太阳

0

<img src="http://pygame.net/wp-content/uploads/2020/10/捕获-21-262×300.png" alt="" width="262" height="300" class="alignnone size-medium wp-image-1574" /


import turtle

turtle.pencolor('red')
turtle.dot(100)
turtle.penup()

for _ in range(12):
    turtle.fd(100)
    turtle.pendown()
    turtle.fd(100)
    turtle.penup()
    turtle.bk(200)
    turtle.left(30)

turtle.done()
  

0

发表评论