Commit d5711c63 by BellCodeEditor

save project

parent 710043e6
Showing with 4 additions and 2 deletions
import turtle
screen = turtle.Screen()
screen.bgcolor("blue")
screen.bgcolor("white")
screen.textinput("姓名框","你的名字是:")
pen = turtle.Pen()
pen.penup()
pen.goto(100,-100)
......@@ -10,7 +11,8 @@ pen.hideturtle()
pen1 = turtle.Pen()
pen1.pensize(5)
pen1.pencolor("green")
len = 60
len = screen.textinput("提示","你想要多大的爱心?")
len = int(len)
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
......
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