Commit 7565b958 by BellCodeEditor

save project

parent 32548636
Showing with 5 additions and 10 deletions
...@@ -7,21 +7,15 @@ pen1.write("heldawdas",font=("Times",10,"normal")) ...@@ -7,21 +7,15 @@ pen1.write("heldawdas",font=("Times",10,"normal"))
pen1.hideturtle() pen1.hideturtle()
screen1=turtle.Screen() screen1=turtle.Screen()
screen1.bgcolor("light blue") screen1.bgcolor("light blue")
a=screen1.textinput("提示","你是傻逼吗")
a=int(a)
pen2=turtle.Pen() pen2=turtle.Pen()
pen2.pensize(5) pen2.pensize(5)
pen2.pencolor("red") pen2.pencolor("red")
pen2.left(45) pen2.left(45)
pen2.forward(100) pen2.forward(a)
pen2.circle(50,180)
pen2.right(90)
pen2.circle(50,180)
pen2.forward(100)
pen2.hideturtle()
a=60
pen2.left(45)
pen2.circle(a/2,180) pen2.circle(a/2,180)
pen2=forword(a)
pen2.right(90) pen2.right(90)
pen2.circle(a/2,180) pen2.circle(a/2,180)
pen2.forword(a) pen2.forward(a)
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