Commit 93f3ca7e by BellCodeEditor

save project

parent f394494e
Showing with 10 additions and 7 deletions
...@@ -2,17 +2,19 @@ import turtle ...@@ -2,17 +2,19 @@ import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("blue") screen.bgcolor("blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup()
pen.goto(-200,-100)
pen.hideturtle()
pen.write("若以,tur真好用,\n我会在画布 上写字!",font=("Time",20,"normal")) pen.write("若以,tur真好用,\n我会在画布 上写字!",font=("Time",20,"normal"))
qen=turtle.Pen() qen=turtle.Pen()
qen.pensize(5) qen.pensize(5)
qen.pencolor("red") qen.pencolor("red")
len=20
qen.left(45) qen.left(45)
qen.forward(100) qen.forward(2*len)
qen.circle(50,180) qen.circle(len,180)
qen.right(90) qen.right(90)
qen.circle(50,180) qen.circle(len,180)
qen.forward(100) qen.forward(2*len)
pen.penup() # qen.hideturtle()
pen.goto(-200,-100)
pen.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment