Commit 6da63a58 by BellCodeEditor

save project

parent 3d03b4ed
Showing with 19 additions and 20 deletions
......@@ -21,24 +21,22 @@
# turtle.done()
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是")
# screen.bgcolor("light blue")
# pen=turtle.Pen()
# pen.up()
# pen.goto(0,0)
# pen.down()
# pen.write("祝你生日快乐",font=("仿宋",30,"normal"))
# pen.up()
# pen.goto(-200,0)
# pen.down()
# a=50
# pen.left(45)
# pen.forward(2*a)
# pen.circle(a,180)
# pen.right(90)
# pen.circle(a,180)
# pen.forward(2*a)
# pen.pensize(5)
# pen.pencolor("red")
# pen.hideturtle()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.up()
pen.goto(0,0)
pen.down()
pen.write("祝你生日快乐",font=("仿宋",30,"normal"))
pen.up()
pen.goto(-200,0)
pen.down()
a=int(screen.textinput("姓名框","半径"))
pen.left(45)
pen.forward(2*a)
pen.circle(a,180)
pen.right(90)
pen.circle(a,180)
pen.forward(2*a)
pen.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