Commit b7bd248d by BellCodeEditor

save project

parent a414b4be
Showing with 22 additions and 5 deletions
import turtle import turtle
...@@ -2,17 +2,34 @@ import turtle ...@@ -2,17 +2,34 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("提示","你想要多大的❤")
len1=int(len)
pen.hideturtle() pen.hideturtle()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(len1)
pen.circle(50,180) pen.circle(len1/2,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len1/2,180)
pen.forward(100) pen.forward(len1)
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("羽生结弦\n最棒!\n柚子\n永远王道!",font=("Times",30,"normal")) pen.write("羽生结弦\n最棒!\n柚子\n永远王道!",font=("Times",30,"normal"))
turtle.done() 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