import turtle
import random
turtle.speed(0)# back ground music
turtle.bgcolor(187/255,255/255,255/255)
turtle.width(5)
str_list =['乔碧萝陛下','娶你是我一生的梦想','今天你嫁为人妻']for b inrange(100):
r = random.random()
g = random.random()
b = random.random()
turtle.color((r,g,b))# 颜色是怎么来的,反光 r g b 三原色
turtle.up()
x = random.randint(-350,350)
y = random.randint(-350,350)
turtle.goto(x,y)
turtle.down()for a inrange(1):# turtle.fd(20)# turtle.left(144)
turtle.write(str_list[random.randint(0,2)],font=(None,20))
turtle.up()
turtle.goto(0,0)
turtle.down()
turtle.write('Kobe画星星',font=(None,35))
ts = turtle.getscreen()
ts.getcanvas().postscript(file='work.jpg')
turtle.done()
pythonimport turtleimport randomturtle.speed(0)for b in range(10): turtle.up() x = random.randint(-350,350) y = random.randint(-350,350) turtle.goto(x,y) turtle.down() for ...