1 #六角星绘制
 2 import turtle as t
 3 t.setup(650,450)
 4 t.color('black','red')
 5 t.pensize(5)
 6 t.begin_fill()
 7 t.seth(30)
 8 for i in range(3):
 9     t.fd(150)
10     t.rt(120)
11     t.fd(75)
12 t.seth(90)
13 for i in range(3):
14     t.fd(75)
15     t.rt(120)
16     t.fd(150)
17 t.end_fill()

posted on 2020-03-15 11:43  Bingo_hwb  阅读(282)  评论(0编辑  收藏  举报