import turtle as t
import random
t.screensize(768,1024)
t.speed(0)
t.bgpic('bg.gif')
for i in range(100):
bj = random.randint(1,384)
t.penup()
#移到圆心位置
t.goto(0,150)
#前进半径距离
t.forward(bj)
#左转90
t.left(90)
t.pendown()
r = random.uniform(0,1)
g = random.uniform(0,1)
b = random.uniform(0,1)
t.pencolor(r,g,b)
#t.color(r,g,b)
t.circle(bj,60)
t.left(random.randint(0,360))