Commit 418c6e4b by BellCodeEditor

save project

parent 3151a468
Showing with 15 additions and 8 deletions
...@@ -3,18 +3,26 @@ import turtle ...@@ -3,18 +3,26 @@ import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好/nfuck.",font=("Times",30,"normal")) pen.write("你好/250.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(50,-100)
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*lovesize)
pen.circle(50,180) pen.circle(lovesize,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(lovesize,180)
pen.forward(100) pen.forward(2*lovesize)
turtle.done() pen.right(90)
\ No newline at end of file pen.hideturtle()
turtle.done()
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