Commit a329eecd by BellCodeEditor

save project

parent a1580b2c
Showing with 18 additions and 5 deletions
import turtle
screen=turtle.Screen()
len=screen.textinput("提示!","你想要多大的爱心?")
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
......@@ -9,12 +10,12 @@ pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
len=100
lovesize=int(len)
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
len=screen.textinput("提示","你想要多大的魔法阵呀?")
lovesize=float(len)
pen.circle(lovesize)
pen.circle(lovesize,360,3)
pen.circle(lovesize,60)
pen.circle(lovesize,360,3)
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