0
我寫了一個python腳本來繪製一個正方形圓。在操作時關閉turtle圖形用戶界面
import turtle
angle = 0
turn_ang = 30
while (angle <= 360):
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.right(turn_ang)
angle = angle + turn_ang
turtle.done()
我希望能夠在它仍處於繪製過程中(即,while循環運行時)關閉turtle GUI。如果我點擊close,GUI會顯示'Not Responding'。請幫忙。