Commit 64b8f605 by BellCodeEditor

save project

parent b732980c
Showing with 6 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
len=100
ds=turtle.Screen() ds=turtle.Screen()
ds.bgcolor("light blue") ds.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
...@@ -13,10 +15,10 @@ pen2.pencolor("red") ...@@ -13,10 +15,10 @@ pen2.pencolor("red")
pen2.fillcolor("red") pen2.fillcolor("red")
pen2.begin_fill() pen2.begin_fill()
pen2.left(45) pen2.left(45)
pen2.forward(100) pen2.forward(2*len)
pen2.circle(50,180) pen2.circle(len,180)
pen2.right(90) pen2.right(90)
pen2.circle(50,180) pen2.circle(len,180)
pen2.forward(100) pen2.forward(len*2)
pen2.end_fill() pen2.end_fill()
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