Commit cfa58f00 by BellCodeEditor

save project

parent 654bc3ba
Showing with 25 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧
import turtle
pen1=turtle.Pen()
pen1.up()
pen1.goto(-100,-100)
pen1.write("诺伊,\nturtle真好用,\n我都会用turtle写字了!",font=("仿宋",20,"normal"))
pen1.hideturtle()
turtle.colormode(255)
pen2=turtle.Pen()
pen2.up()
pen2.goto(-39,12)
pen2.down()
pen2.pensize(5)
pen2.pencolor(238,130,238)
pen2.setheading(45)
pen2.forward(100)
pen2.circle(100/2,180)
pen2.right(90)
pen2.circle(100/2,180)
pen2.forward(100)
pen2.hideturtle()
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