python初体验--五角星

import turtle

star = turtle.Turtle()


def draw_star(*args):
for argument in args:
star.pencolor(argument)
for i in range(5):
star.forward(80)
star.right(144)
draw_star("green","blue","yellow","pink","red","purple","orange")
turtle.done()

posted @ 2019-08-29 15:32  freechen  阅读(379)  评论(0编辑  收藏  举报