圆是随机的在画布上画一个圆.............................................................
代码可这样写:
import turtle as t
import random
t.screensize(800,600)
t.hideturtle()
t.speed(3)
x,y=random.randint(-300,300),random.randint(-200,200)
t.pu()
t.goto(x,y)
r=int(pow((x**2+y**2),0.5))
t.pd()
t.fillcolor('blue')
t.begin_fill()
t.circle(r/4)
t.end_fill()
t.mainloop()