我是一名Python新手,正在开发我的第一个 turtle 图形程序.
这就是我目前所拥有的
import turtle
def draw_square():
window = turtle.Screen()
window.bgcolor("red")
brad = turtle.Turtle()
brad.forward(100)
window.exitonclick()
draw_square()
This code works perfectly on my friend's Windows laptop: However, problem arises when we tried to run it on my Macbook. The issue we were facing is that Python Turtle Graphics displays nothing as below:
为什么我的程序不能在MacOS上正常运行?我该如何解决这个问题呢?