Python中用turtle画圈

import turtle
t=turtle.Pen()
mc=("red",'blue','green','black','yellow')
t.width(3)
t.speed(0)
for i in range(41):
t.penup()
t.goto(0,i*5)
t.pendown()
t.color(mc[i%len(mc)])
t.circle(-100+i*5)

posted on 2020-12-08 17:22  一网两船  阅读(218)  评论(0)    收藏  举报