[Python] Is setting `turtle.speed(0)` necessary when we have turtle.tracer(0)

Discussão em 'Python' iniciado por Stack, Março 7, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a difference between:

    import turtle
    turtle.tracer(0)
    turtle.speed(0)
    while True:
    turtle.goto(turtle.xcor()+1)
    turtle.update()


    And:

    import turtle
    turtle.tracer(0)
    while True:
    turtle.goto(turtle.xcor()+1)
    turtle.update()


    I've heard that setting turtle.speed(0) make things faster, but if so, I don't see any difference.

    Continue reading...

Compartilhe esta Página