Commit 215a4541 by BellCodeEditor

save project

parent 19ee7174
Showing with 8 additions and 5 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
screen.bgcolor("lightblue")
pen.penup()
pen.goto(0,-100)
pen.write("爸爸妈妈:\n我学会了用turtle写字\npython真好玩",font=("times",20,"normal"))
pen.hideturtle()
len=60
pen.goto(0,0)
pen.pendown()
pen.pensize(10)
pen.pencolor("red")
pen.left(45)
pen.forward(len*2)
pen.circle(30,180)
pen.circle(len,180)
pen.right(90)
pen.circle(30,180)
pen.circle(len,180)
pen.forward(len*2)
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