Commit a84f5074 by BellCodeEditor

save project

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