Commit c30ccfaf by BellCodeEditor

save project

parent 14607861
Showing with 9 additions and 7 deletions
......@@ -3,17 +3,19 @@ import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
len=screen.textinput("提示","请输入爱心大小:")
lovesize=int(len)
pen.penup()
pen.goto(0,100)
pen.write("霸霸\n",font=("Times",30,"normal"))
pen.goto(0,-100)
pen.write("霸霸\n",font=("Times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pensize(20)
pen1.pencolor("pink")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(lovesize*2)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(lovesize,180)
pen1.forward(lovesize*2)
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