Commit 1f8dc2c7 by BellCodeEditor

save project

parent feb082cc
Showing with 6 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
l=50
w=turtle.Screen()
w.bgcolor("pink")
p=turtle.Pen() p=turtle.Pen()
p.penup() p.penup()
p.goto(0,-100) p.goto(0,-100)
...@@ -7,9 +10,9 @@ p.write("我是你爸爸",font=("times",30,"normal")) ...@@ -7,9 +10,9 @@ p.write("我是你爸爸",font=("times",30,"normal"))
p.hideturtle() p.hideturtle()
p1=turtle.Pen() p1=turtle.Pen()
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(2*l)
p1.circle(50,180) p1.circle(l,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(50,180)
p1.forward(100) p1.forward(2*l)
turtle.done() turtle.done()
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