Python turtle module causes OS X to crash

删除回忆录丶 提交于 2019-12-04 02:25:41

try and set the screen and mainloop

    window = turtle.Screen()
    window.setup(width,height)
    while True:
            window.update()
    window.mainloop()

Try running the file in the terminal using the command:- $ python filename.py

I had the same issue and I was VS code extension Code Runner to run the python file, however, when I tried the terminal it worked and the mac OS was not crashing this time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!