如何将海龟设置为屏幕的一部分,以便它从那里开始。
import turtle
import random
wn = turtle.Screen() #sets the screen
wn.screensize(1000,1000)
ad = turtle.Turtle() #names the turtle
ad.shape("circle") #changes turtles or "ad's" shape
ad.speed(98989898989898989898989898989898989898)
r = 100 #CHANGES THE SIZE OF THE WRITING
x_pos = 1000 - r*2
y_pos = 1000 - r
ad.penup()
ad.setx(-x_pos)
ad.sety(y_pos)
ad.pendown()