Commit c51fad3a by BellCodeEditor

save project

parent 4906a982
Showing with 8 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
p=turtle.Pen() p=turtle.Pen()
p.penup() p.penup()
...@@ -7,14 +9,15 @@ p.write("诺伊",font=("Times",18,"normal")) ...@@ -7,14 +9,15 @@ p.write("诺伊",font=("Times",18,"normal"))
p.hideturtle() p.hideturtle()
s=turtle.Screen() s=turtle.Screen()
s.bgcolor("light blue") s.bgcolor("light blue")
len=50
p2=turtle.Pen() p2=turtle.Pen()
p2.pencolor("red") p2.pencolor("red")
p2.pensize(5) p2.pensize(5)
p2.left(45) p2.left(45)
p2.forward(100) p2.forward(len*2)
p2.circle(50,180) p2.circle(len,180)
p2.right(90) p2.right(90)
p2.circle(50,180) p2.circle(len,180)
p2.forward(100) p2.forward(len*2)
p2.hideturtle() p2.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