五角星

import turtle as t 

t.fillcolor("red")#颜色填充函数

t.begin_fill()

while Ture:

t.foward(200)

t.right(144)

if abs(t.pos())<1:#看画笔是否回到原点,回到原点为真

break

t.end_fill()

 

posted @ 2020-09-14 19:50  Zhhou  阅读(63)  评论(0)    收藏  举报