Python time delay

后端 未结 2 1247
名媛妹妹
名媛妹妹 2021-01-25 10:56

Alright, I want to know how to delay a portion of a program without pausing the entire program. I\'m not necessarily good at python so if you could give me a relatively simple a

2条回答
  •  一向
    一向 (楼主)
    2021-01-25 11:46

    There is turtle.ontimer() that calls a function with the specified delay:

    turtle.ontimer(your_function, delay_in_milliseconds)
    

提交回复
热议问题