for循环:用turtle画一颗五角星

import turtle
import time
turtle.fillcolor('yellow')
turtle.begin_fill()
turtle.forward(100)
turtle.right(144)
time.sleep(1)
turtle.forward(100)
turtle.right(144)
time.sleep(1)
turtle.forward(100)
turtle.right(144)
turtle.forward(100)
time.sleep(1)
turtle.right(144)
turtle.forward(100)
turtle.end_fill()
time.sleep(3)

posted @ 2018-05-09 20:23  黄雪旎  阅读(294)  评论(0编辑  收藏  举报