Commit 51f01c99 by BellCodeEditor

save project

parent 9e2dc314
Showing with 8 additions and 6 deletions
......@@ -7,13 +7,14 @@ pen1.goto(100,-100)
pen1.write("诺伊你好呀!\n用Python写贺卡\n真的太有趣了",font=("Times",20,"normal"))
pen=turtle.Pen()
pen.pensize(5)
len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
pen.pencolor("red")
len=60
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.circle(lovesize,180)
pen.forward(2*lovesize)
pen.hideturtle()
turtle.done()
turtle.done()
\ No newline at end of file
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