from turtle import *
import random
color = ['red','black','blue','green','cyan','orange']
y = 150
for i in range(5):
radius = random.randint(30,40)
y = y-2*radius
penup() #提起画笔
goto(0, y) #起始坐标
pendown()
begin_fill() #填充颜色
c=random.choice(color)
fillcolor(c)#填充红色
circle(radius)
end_fill()
penup()
width(5)
goto(0,y)
pendown()
seth(-90)
pencolor("yellow")#填充红色
forward(50)
done()