Commit 59424b52 by BellCodeEditor

save project

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