Commit cb00cfe9 by BellCodeEditor

save project

parent 07858a54
Showing with 23 additions and 0 deletions
import turtle
screen = turtle.Screen()
len = screen.textinput("你猜","请输入爱心的边长:")
length = int(len)
pen = turtle.Pen()
pen.left(45)
pen.forward(2*length)
pen.circle(length,180)
pen.right(90)
pen.circle(length,180)
pen.forward(2*length)
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