Commit 021a0e1d by BellCodeEditor

save project

parent acadfe58
Showing with 10 additions and 5 deletions
...@@ -4,9 +4,6 @@ import turtle ...@@ -4,9 +4,6 @@ import turtle
# screen.bgcolor("light blue") # screen.bgcolor("light blue")
# len=screen.textinput("100","100") # len=screen.textinput("100","100")
# len=int(len) # len=int(len)
# pen=turtle.Pen()
# pen.write("你好\nSB.",font=("Times",30,"normal"))
# pen.hideturtle()
# len=60 # len=60
# pen.penup() # pen.penup()
# pen.goto(100,100) # pen.goto(100,100)
...@@ -21,12 +18,21 @@ import turtle ...@@ -21,12 +18,21 @@ import turtle
# pen.forward(2*len) # pen.forward(2*len)
# turtle.done() # turtle.done()
pen1=turtle.Pen() pen1=turtle.Pen()
turtle.bgcolor("light blue")
pen1.pensize(6) pen1.pensize(6)
pen1.pencolor("red") pen1.pencolor("red")
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(100)
pen1.circle(50,180) pen1.circle(50,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(50,180)
pen1.forward(100) pen1.forward(100)
turtle.done() pen1.end_fill()
\ No newline at end of file pen1.up()
pen=turtle.Pen()
pen.goto(100,100)
pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle()
turtle.done()
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