画☆

0
import turtle
from random import randint


def fuck(giao):
    turtle.pendown()
    turtle.begin_fill()
    for xz in range(5):
        turtle.fd(giao)
        turtle.right(144)
    turtle.end_fill()
    turtle.penup()
turtle.setup(800,600)
turtle.pensize(5)
turtle.speed(7)
turtle.fillcolor('yellow')
turtle.penup()
for c in range(50):
    PDD=randint(10,150)
    x=randint(-400,250)
    
    y=randint(-150,150)
    turtle.goto(x,y)
    fuck(PDD)  

</pre>

0

发表评论