Commit d39afa51 by BellCodeEditor

save project

parent b5a8cb46
Showing with 8 additions and 5 deletions
......@@ -2,19 +2,21 @@
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
len = screen.textinput("你要什么大小??","d")
len=int(len)
pen=turtle.Pen()
pen1=turtle.Pen()
pen1.penup()
pen1.forward(130)
pen1.forward(len)
pen1.pendown()
pen1.write("你好\n诺依.",font=("Times",30,"normal"))
pen1.hideturtle()
pen.pensize(5)
pen.pencolor("green")
pen.left(45)
pen.forward(120)
pen.circle(60,180)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(60,180)
pen.forward(120)
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