Commit a74b55d9 by BellCodeEditor

save project

parent 5411a90f
Showing with 7 additions and 6 deletions
...@@ -4,17 +4,17 @@ len=60 ...@@ -4,17 +4,17 @@ len=60
Pen.penup() Pen.penup()
Pen.goto(100,-100) Pen.goto(100,-100)
screen = turtle.Screen() screen = turtle.Screen()
len=screen.textinput("姓名框","你的名字是:")
lovesize=int(len)
screen.bgcolor("lightblue") screen.bgcolor("lightblue")
Pen.write("诺依,turtle真好用,\n我会在画布上写字啦\n!",font=("Times",15,"normal")) Pen.write("诺依,turtle真好用,\n我会在画布上写字啦\n!",font=("Times",15,"normal"))
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(9) pen1.pensize(9)
pen1.pencolor("blue") pen1.pencolor("blue")
pen1.left(45) pen1.left(45)
pen1.forward(len*2) pen1.forward(lovesize*2)
pen1.circle(len,180) pen1.circle(lovesize,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(lovesize,180)
pen1.forward(len*2) pen1.forward(lovesize*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