绘制六角星

import turtle
def drawTriangle():
    for i in range(3):
        turtle.fd(60)
        turtle.left(120)
for i in range(6):
    drawTriangle()
    turtle.penup()
    turtle.fd(60)
    turtle.pendown()
    turtle.right(60)

  如图:

posted @ 2020-03-11 16:11  邓若言  阅读(536)  评论(0编辑  收藏  举报