Commit 433cd87b by BellCodeEditor

save project

parent 03088380
Showing with 8 additions and 6 deletions
...@@ -5,17 +5,19 @@ screen.bgcolor("light pink") ...@@ -5,17 +5,19 @@ screen.bgcolor("light pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("你好呀.",font=("Times",13,"normal")) pen.write("球运.",font=("Times",13,"normal"))
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(5) pen1.pensize(5)
pen1.pencolor("red") pen1.pencolor("red")
len=60 len=screen.textinput("提示","你想要多大的爱心")
size=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(len*2) pen1.forward(size*2)
pen1.circle(len,180) pen1.circle(size,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(size,180)
pen1.forward(len*2) pen1.forward(size*2)
pen1.hideturtle()
turtle.done() 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