Commit 9a89651d by BellCodeEditor

auto save

parent d8f33419
Showing with 16 additions and 8 deletions
......@@ -2,3 +2,6 @@ import turtle
pen=turtle.Pen()
pen.write(" \n",font=("Times","30","normal"))
screen= turtle.Screen
screen.bgcolor("pink")
len=screen.textirpnt()
loye
\ No newline at end of file
......@@ -2,8 +2,8 @@
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle()
......@@ -13,10 +13,14 @@ pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
def love(len):
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
len=screen.textinput("提示","多大爱心")
lovel=int(len)
love(lovel)
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