Commit ce448183 by BellCodeEditor

auto save

parent fd62b0f0
Showing with 5 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
len = 50
pen=turtle.Pen() pen=turtle.Pen()
screen = turtle.Screen() screen = turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
...@@ -10,9 +11,9 @@ p=turtle.Pen() ...@@ -10,9 +11,9 @@ p=turtle.Pen()
p.pensize(4) p.pensize(4)
p.pencolor("red") p.pencolor("red")
p.left(45) p.left(45)
p.forward(100) p.forward(2*len)
p.circle(50,180) p.circle(len,180)
p.right(90) p.right(90)
p.circle(50,180) p.circle(len,180)
p.forward(100) p.forward(2*len)
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