Commit fa671087 by BellCodeEditor

save project

parent 1c2c3594
Showing with 3 additions and 3 deletions
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
l = int(screen.textinput("提示","大小"))
pen=turtle.Pen() pen=turtle.Pen()
pen.write("嘿!你丫的瞅什么?\n是我,你爹!\n看你长得内个b样",font=("Times",20,"normal")) pen.write("嘿!你丫的瞅什么?\n是我,你爹!\n看你长得内个b样",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
...@@ -11,11 +12,11 @@ pen.goto(100,100) ...@@ -11,11 +12,11 @@ pen.goto(100,100)
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("black") pen.pencolor("black")
l = 2 #l = 50
pen.left(45) pen.left(45)
pen.forward(2*l) pen.forward(2*l)
pen.circle(l,180) pen.circle(l,180)
pen.right(90) pen.right(90)
pen.circle(l,180) pen.circle(l,180)
pen.forward(2*l) pen.forward(2*l)
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