Commit 82bad454 by BellCodeEditor

save project

parent 9af727e8
Showing with 7 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
pen.write("去死吧!",font=("Times",30,"normal")) pen.write("去死吧!",font=("Times",30,"normal"))
pen.up() pen.up()
pen.goto(-100,100) pen.goto(-100,100)
...@@ -8,10 +10,11 @@ pen.down() ...@@ -8,10 +10,11 @@ pen.down()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forward(100) len=60.5
pen.circle(50,180) pen.forward(2*len)
pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(len*2)
pen.hideturtle() pen.hideturtle()
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