Commit 5926d048 by BellCodeEditor

save project

parent d35526c1
Showing with 7 additions and 5 deletions
import turtle
pen=turtle.Pen()
#len=input("请输入爱心大小
len=50
screen=turtle.Screen()
len=screen.textinput("提示","你想要多大的爱心")
s=int(len)
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.forward(2*s)
pen.circle(s,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.circle(s,180)
pen.forward(2*s)
pen.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