Commit c37d8d8b by BellCodeEditor

save project

parent 71e4ce1b
Showing with 7 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~
import random
import turtle
f=[45,50,40,31,22,40.31,22.5]
Len=random.choice(f)
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
......@@ -11,11 +14,11 @@ pen.goto(0,0)
pen1.pencolor("red")
pen1.pensize(10)
pen1.setheading(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(2*Len)
pen1.circle(Len,180)
pen1.left(-90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(Len,180)
pen1.forward(2*Len)
pen1.hideturtle()
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