Commit 4dc796da by BellCodeEditor

save project

parent 8291ac0e
Showing with 28 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
import random
pen=turtle.Pen()
pen1=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light yellow")
pen1.penup()
pen1.goto(100,-100)
pen1.write("你\n你好帅\n你在夕阳下的身影\n好帅\n好帅.......",font=("Times",10,"normal"))
pen.hideturtle()
len=random.randint(60,100)
pen.pensize(10)
pen.pencolor('red')
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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