Commit 82fd4ff4 by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor('light blue')
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.pendown()
pen.write('恭喜肖易,\n在2019获得\n第1名电竞选手',font=('Times',25,'normal'))
turtle.hideturtle()
#画心
len=screen.textinput('提示','多大的爱心')
interesting=int(len)
pen1=turtle.Pen()
pen1.fillcolor('red')
pen1.begin_fill()
pen1.left(45)
pen1.forward(2*interesting)
pen1.circle(interesting,180)
pen1.right(90)
pen1.circle(interesting,180)
pen1.forward(interesting*len)
pen1.end_fill()
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