简体   繁体   中英

What unit of time does the delay refer to?

In the tracer(x,y) function of python's standard turtle graphics where x is said to be the number of updates and y is said to be the delay time and calling the tracer does turn of the tracing animation. For example, in the call of turtle.tracer(1, 50), what unit of time does the delay of 50 refer to?

According to the docs:

Set or return the drawing delay in milliseconds. (This is approximately the time interval between two consecutive canvas updates.) The longer the drawing delay, the slower the animation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM