渐变的圆

 1 from turtle import*
 2 n=eval(input())
 3 a=3
 4 color("blue","yellow")
 5 begin_fill()
 6 for i in range(n-2):
 7     circle(50,steps=a)
 8     fd(50)
 9     a=a+1
10 end_fill()
11 hideturtle()

 

 

posted on 2020-03-17 18:15  B·W  阅读(153)  评论(0编辑  收藏  举报