Commit d67ec4ac by BellCodeEditor

save project

parent 79c90957
Showing with 3 additions and 3 deletions
......@@ -2,7 +2,9 @@ import turtle
pen=turtle.Pen()
pen.pencolor("red")
pen.pensize(5)
len=screen.textinput("提示""爱心尺寸")
screen=turtle.Screen()
screen.bgcolor("pink")
len=screen.textinput("提示","爱心尺寸")
bb=int(len)
pen.write("你好呀\nsb",font=("time",20,"normal"))
pen.up()
......@@ -17,6 +19,4 @@ pen.forward(2*bb)
pen.left(90)
pen.forward(2*bb)
pen.hideturtle()
screen=turtle.Screen()
screen.bgcolor("pink")
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