Commit a84f5074 by BellCodeEditor

save project

parent d7c3f743
Showing with 16 additions and 4 deletions
...@@ -2,8 +2,19 @@ ...@@ -2,8 +2,19 @@
import turtle. import turtle.
screen=turele.Screen() screen=turele.Screen()
screen=Screen.bgcolor("red") screen=Screen.bgcolor("red")
pen.Penup() screen=turtle.Screen()
pen.goto(-90,0) a=screen.textinput("你想要多大的爱心?")
pen.write("你好",font=("times",40,"normal")) b=int(a)
pen.hide turtle() pen.turtle.Pen()
pen.penup()
pen.goto(-100,0)
pen.write("你好",font=("times",30,"normal"))
pen1=turtle.Pen()
pen1.left(45)
pen1.forward(2*b)
pen1.circle(b,180)
pen1.right(90)
pen1.circle(b,180)
pen1.forward(2*b)
pen1.hideturtle()
turtle.done() 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