Commit bdf7e828 by BellCodeEditor

save project

parent f476b24a
Showing with 7 additions and 6 deletions
......@@ -11,19 +11,20 @@ pen.write("诺伊,你好呀!\npython真好用ďĽ\nć‘真喜欢pythonďĽâ€”—ć
pen.hideturtle()
# 画爱心
pen1 = turtle.Pen()
pen1.pensize(4)
pen1.pensize(6)
pen1.pencolor("purple")
pen1.fillcolor("purple")
pen1.begin_fill()
pen1.penup()
pen1.goto(-80,0)
pen1.goto(-120,-50)
pen1.pendown()
len = 100
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.end_fill()
pen1.hideturtle()
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