Commit dfcd367c by BellCodeEditor

save project

parent dc7945ae
Showing with 24 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
f=100
screen=turtle.Screen()
screen.bgcolor("blue")
p=turtle.Pen()
p.penup()
p.goto(100,-100)
p.write("我用turtle给你回信了\n——悟空",font=("Times",15,"normal"))
p.hideturtle()
t=turtle.Pen()
t.pencolor("red")
t.pensize(10)
t.fillcolor("red")
t.begin_fill()
t.left(45)
t.forward(f*2)
t.circle(f,180)
t.right(90)
t.circle(f,180)
t.forward(f*2)
t.end_fill()
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