Commit 8f017dca by BellCodeEditor

save project

parent 53039832
Showing with 13 additions and 8 deletions
...@@ -12,16 +12,21 @@ ...@@ -12,16 +12,21 @@
# goto(30,-100) # goto(30,-100)
# write("你干嘛",font=("times",30,"normal")) # write("你干嘛",font=("times",30,"normal"))
# done() # done()
importi turtle import turtle
screen=turtle
len=30
screen=turtle.Screen()
pen=turtle.Pen()
screen.bgcolor('light blue') screen.bgcolor('light blue')
pen.color('red') pen.color('red')
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(len*2)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(len*2)
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,100)
pen. pen.pencolor("black")
\ No newline at end of file pen.hideturtle
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