Commit 7da7543b by BellCodeEditor

save project

parent 6cd25839
Showing with 12 additions and 5 deletions
# # 利用write()帮助悟空给诺依回信吧~
import turtle
import random
S = random.choice([100,200,300])
R = S / 2
Pen=turtle.Pen()
r=turtle.Screen()
r.bgcolor("pink")
Pen.penup()
Pen.goto(100,-100)
Pen.goto(100,-300)
Pen.write("你好啊",font=("times",50,"normal"))
Pen.hideturtle()
t=turtle.Pen()
t.penup()
t.goto(0,-200)
t.pendown()
t.pensize(5)
t.pencolor("red")
t.left(45)
t.forward(100)
t.circle(50,180)
t.forward(S)
t.circle(R,180)
t.right(90)
t.circle(50,180)
t.forward(100)
t.circle(R,180)
t.forward(S)
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