Commit 7f3a721d by BellCodeEditor

save project

parent 82a8cae3
Showing with 139 additions and 6 deletions
import turtle import turtle
pen=turtle.Pen() # pen=turtle.Pen()
pen.write("你好\ni.",font=("Times",30,"normal")) # pen.write("你好\ni.",font=("Times",30,"normal"))
pen.hideturtle() # pen.hideturtle()
turtle.done() # turtle.done()
\ No newline at end of file pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.hideturtle()
turtle.done()
...@@ -12,7 +12,7 @@ pen.penup() ...@@ -12,7 +12,7 @@ pen.penup()
pen.goto(100,100) pen.goto(100,100)
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.penolor("red")
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*len)
pen.circle(len,180) pen.circle(len,180)
......
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