import turtle
def tuxing():
colors = ["blue","yellow","orange","green","red","indigo","purple",'black']
for i in range(len(colors)):
c = colors[i]
turtle.color(c)
turtle.begin_fill()
turtle.circle(100)
turtle.rt(360/len(colors))
turtle.end_fill()
turtle.done()
if __name__ == "__main__":
tuxing()
Python图形的绘制(圆圈的绘制)
最新推荐文章于 2024-06-20 20:27:03 发布