Commit 56244c02 by BellCodeEditor

save project

parent 19a470ac
Showing with 19 additions and 4 deletions
import turtle
pen=turtle.Pen()
pen.circle(50)
pen.left(90)
pen.forward(100)
pen.left(180)
pen.forward(50)
pen.left(90)
pen.forward(50)
pen.left(180)
pen.forward(100)
pen.hideturtle()
turtle.done()
\ No newline at end of file
...@@ -5,15 +5,16 @@ screen.bgcolor("light blue") ...@@ -5,15 +5,16 @@ screen.bgcolor("light blue")
Pen=turtle.Pen() Pen=turtle.Pen()
Pen.penup() Pen.penup()
Pen.goto(100,-100) Pen.goto(100,-100)
Pen.write("你好\nSB.",font=("Times",30,"normal")) Pen.write("吴总桓是SB\n.",font=("Times",30,"normal"))
Pen.hideturtle() Pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("red") pen1.pencolor("red")
len=60
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*len)
pen1.circle(50,180) pen1.circle(len,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(50,180)
pen1.forward(100) pen1.forward(2*len)
pen1.hideturtle() pen1.hideturtle()
turtle.done() 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