Commit 5cb6ca33 by BellCodeEditor

save project

parent b1cd376f
Showing with 9 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
from random import randint
screen=turtle.Screen()
screen.bgcolor("blue")
pen.penup()
pen.goto(50,-200)
pen.pendown()
......@@ -9,12 +12,13 @@ pen.penup()
pen.goto(-50,0)
pen.pendown()
pen.pensize(5)
len=randint(50,150)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.circle(len,180)
pen.forward(len*2)
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