画一组同心圆

 1 from turtle import*
 2 r=eval(input())
 3 n=eval(input())
 4 c=input()
 5 pencolor(c)
 6 for i in range(n):
 7     circle(r)
 8     pu()
 9     right(90)
10     fd(20)
11     left(90)
12     pd()
13     r=r+20

 

posted on 2020-03-17 16:24  B·W  阅读(216)  评论(0编辑  收藏  举报