Using turtle module exitonclick()
问题 My code should close the turtle.screen after first part then start another screen and do the second part. but there it is not working as intend. import turtle ws = turtle.Screen() tod_1 = turtle.Turtle() tod_1.color("red", "green") tod_1.begin_fill() for i in range(3): tod_1.forward(50) tod_1.left(360 / 3) tod_1.end_fill() ws.exitonclick() input("go'press any thing' ") ws = turtle.Screen() tod_2 = turtle.Turtle() tod_2.color("red", "green") tod_2.begin_fill() for i in range(6): tod_2.forward