Commit a8edf6ee by BellCodeEditor

save project

parent c095e7ce
Showing with 7 additions and 4 deletions
......@@ -9,13 +9,15 @@ pen.write("hi,诺一\n我也喜欢\n---悟空",font=("Times",20,"narmal"))
pen.hideturtle()
pen=turtle.Pen()
len=60
screen.textinput("提示","你想要多大的爱心")
lovesize=int(len)
pen.pencolor("red")
pen.pensize(5)
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.forward(lovesize*2)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
pen.circle(lovesize,180)
pen.forward(lovesize*2)
pen.hideturtle()
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