到目前为止,我有这个,它做了两个圆圈,但一个在屏幕外。我想把它放在中心,让它们彼此分开。现在它做了两个循环,但我希望它做一个小圆圈,然后在屏幕中间的第一个周围做一个更大的圆圈。两者都需要不同。颜色。
def sun_and_earth():
import turtle #allows me to use the turtles library
turtle.Turtle()
turtle.Screen() #creates turtle screen
turtle.window_height()
turtle.window_width()
turtle.bgcolor('grey') #makes background color
turtle.color("red", "green")
turtle.circle(2, 360) #draws a (size, radius) circle
turtle.circle(218, 360)
turtle.exitonclick() #exits out of turtle window on click of window