Commit db602045 by BellCodeEditor

save project

parent 7bdf6b2b
Showing with 6 additions and 4 deletions
import turtle import turtle
scree=turtle.Screen() scree=turtle.Screen()
len=scree.textinput("提示","你想要多大的爱心啊?")
lovesize=int(len)
scree.bgcolor("light blue") scree.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好呀!",font=("Times",30,"normal")) pen.write("你好呀!",font=("Times",30,"normal"))
...@@ -7,10 +9,10 @@ pen.penup() ...@@ -7,10 +9,10 @@ pen.penup()
pen.goto(-100,0) pen.goto(-100,0)
pen.left(45) pen.left(45)
pen.pendown() pen.pendown()
pen.forward(100) pen.forward(2*lovesize)
pen.circle(50,180) pen.circle(lovesize,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(lovesize,180)
pen.forward(100) pen.forward(2*len)
pen.hideturtle() pen.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