[Python] Draw dashed line using turtle graphics

Discussão em 'Python' iniciado por Stack, Fevereiro 10, 2025.

  1. Stack

    Stack Membro Participativo

    from turtle import Turtle, Screen
    tt_turtle_obj = Turtle()

    for _ in range(15):
    tt_turtle_obj.forward(10)
    tt_turtle_obj.color("white")
    tt_turtle_obj.forward(10)
    tt_turtle_obj.color("black")

    screen = Screen()
    screen.exitonclick()


    I used this code to do the same. Is there any other way?

    Continue reading...

Compartilhe esta Página