作品说明
import turtle
import random
def colors():
d=random.uniform(0,1)
a=random.uniform(0,1)
n=random.uniform(0,1)
turtle.fillcolor(d,a,n)
colors()
turtle.begin_fill()
turtle.shape()
for i in range(4):
turtle.fd(50)
turtle.left(90)
turtle.end_fill()
turtle.fd(25)
colors()
turtle.begin_fill()
turtle.circle(25)
turtle.end_fill()
turtle.fd(25)
colors()
turtle.begin_fill()
turtle.shape()
for i in range(4):
turtle.fd(50)
turtle.left(90)
turtle.end_fill()
colors()
turtle.begin
操作说明
turtle.fd(25)
colors()
turtle.begin_fill()
turtle.circle(25)
turtle.end_fill()
turtle.fd(25)
colors()
turtle.begin_fill()
turtle.shape()
for i in range(4):
turtle.fd(50)
turtle.left(90)
turtle.end_fill()
colors()
turtle.begin_fill()
turtle.circle(50,90)
turtle.left(90)
turtle.fd(50)
turtle.left(90)
turtle.fd(50)
turtle.end_fill()