Commit 66edbd49 by BellCodeEditor

save project

parent a50ceeec
Showing with 24 additions and 0 deletions
#利用write()帮助悟空给诺依回信吧~
import turtle
len=100
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen.write("诺依,\nturtle真好用,\n我能在画布上写字了",font=("Times",30,"normal"))
pen.hideturtle()
pen.up()
pen.forward(-100)
pen.down()
pen.fillcolor("red")
pen.begin_fill()
pen.left(45)
pen.pensize(5)
pen.color("red")
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
pen.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