Commit 04aa7304 by BellCodeEditor

save project

parent 9d820da5
Showing with 8 additions and 4 deletions
...@@ -6,15 +6,18 @@ pen=turtle.Pen() ...@@ -6,15 +6,18 @@ pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("我是你爹",font=("宋体",13,"normal")) pen.write("我是你爹",font=("宋体",13,"normal"))
p1=turtle.Pen() p1=turtle.Pen()
p1.pensize(5) p1.pensize(5)
p1.pencolor("red") p1.pencolor("red")
len=screen.textinput("sb","你想要得到多大的爱心")
lovesize=int(len)
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(lovesize*2)
p1.circle(50,180) p1.circle(lovesize,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(lovesize,180)
p1.forward(100) p1.forward(2*lovesize)
p1.hideturtle() p1.hideturtle()
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