import turtle
import random
wd=20
nd=144
turtle.speed(0)
turtle.color("yellow")
turtle.bgcolor("black")
turtle.pensize(5)
for y in range(100):
# 跳转另一个地方
turtle.color(random.random(),random.random(),random.random())
a=random.randint(-350,350)
b=random.randint(-350,350)
turtle.up()
turtle.goto(a,b)
turtle.down()
c=random.randint(1,50)
for j in range(5):
turtle.fd(c)
turtle.lt(nd)
# turtle.write("鸡你太美",font=(None, c))
turtle.done()
jiayu-随机数字
最新推荐文章于 2024-08-27 16:38:10 发布