Commit 5432f40b by BellCodeEditor

save project

parent 7bb644a3
Showing with 5 additions and 8 deletions
import turtle
import turtle
......@@ -2,7 +2,6 @@ import turtle
#背景
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("提示","爱心大型:")
#文字
pen=turtle.Pen()
pen.penup()
......@@ -13,14 +12,12 @@ pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
newlen = int(len)
#变量
pen1.left(45)
pen1.forward(2*newlen)
pen1.circle(newlen,180)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(newlen,180)
pen1.forward(2*newlen)
pen1.hideturtle()
pen1.circle(len,180)
pen1.forward(2*len)
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