Commit a2ce31f1 by BellCodeEditor

auto save

parent 07858a54
Showing with 29 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
love=screen.textinput("提示","你想要粉色爱心吗,输入一个数字")
i=int(love)
pen=turtle.Pen()
pen.penup()
pen.goto(-100,100)
pen.pendown()
pen.pencolor("pink")
pen.fillcolor("pink")
pen.begin_fill()
pen.left(135)
pen.circle(i,180)
pen.forward(2*i)
pen.left(90)
pen.forward(2*i)
pen.circle(i,180)
pen.end_fill()
pen.penup()
pen.goto(0,0)
pen.write("爱心",font=("方正楷体",30,"normal"))
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