Commit 9b30351b by BellCodeEditor

save project

parent f752a8de
Showing with 7 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
len=60
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
...@@ -10,14 +11,15 @@ pen.write("你好呀\n I love you",font=("Times",30,"normal")) ...@@ -10,14 +11,15 @@ pen.write("你好呀\n I love you",font=("Times",30,"normal"))
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("light pink") pen1.pencolor("light pink")
pen1.pensize(1) pen1.pensize(1)
pen.fillcolor("light pink") pen1.fillcolor("light pink")
pen.begin_fill() pen1.begin_fill()
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*len)
pen1.circle(50,180) pen1.circle(50,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(50,180)
pen1.forward(100) pen1.forward(2*len)
pen1.end_fill()
pen.hideturtle() pen.hideturtle()
pen1.hideturtle() pen1.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