Commit 6bd510cd by BellCodeEditor

save project

parent d34c1788
Showing with 20 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
len=screen.textinput("提示","请输入爱心大小")
color=screen.textinput("提示","请输入背景颜色")
intlen=int(len)
screen.bgcolor(color)
pen.fillcolor("red")
pen.pencolor("red")
pen.begin_fill()
pen.lt(45)
pen.fd(2*intlen)
pen.circle(intlen,180)
pen.rt(90)
pen.circle(intlen,180)
pen.fd(2*intlen)
pen.end_fill()
pen.hideturtle()
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