Commit 19ee7174 by BellCodeEditor

save project

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