Python uses turtle library to draw dotted lines
import turtle as t#Give the turtle library an alias of t
#t.setup(600,600,200,100)
t.speed(0)
#Description speed t.pencolor("red")#Description color
for i in range(5):#用for Loop traversal
t.forward(20)
#Draw a line according to the front angle t.penup()#Paint lift up
t.forward(20)
#Draw a line according to the front angle t.pendown()#Paint lift up
t.done( )#Keep window = turtle.done()