Commit 94edefd9 by BellCodeEditor

save project

parent ac18cbd3
Showing with 9 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
# pen=turtle.Pen()
# pen.write("诺依,\n turtle真好用,\n 我已经会在画布上写字啦!",font=("Times",30,"normal"))
# pen.hideturtle()
# turtle.done()
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
......@@ -8,14 +12,13 @@ pen.goto(-100,0)
pen.write("祝你生日快乐!",font=("Times",30,"normal"))
pen.hideturtle()
turtle.done()
len=60
penl.pensize(5)
penl.pencolor("red")
penl.left(45)
penl.forward(2*len)
penl.circle(len,180)
penl.forward(100)
penl.circle(50,180)
penl.right(90)
penl.circle(len,180)
penl.forward(2*len)
penl.circle(50,180)
penl.forward(100)
penl.hideturtle()
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