Commit 9aba8e4d by BellCodeEditor

save project

parent a50ceeec
Showing with 39 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧
import turtle
turtle.colormode(255)
s = turtle.Screen()
s.bgcolor((238,130,238))
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)
def huayuan(b):
pen2.pencolor(100,130,238)
pen2.setheading(45)
pen2.forward(b)
pen2.circle(b/2,180)
pen2.right(90)
pen2.circle(b/2,180)
pen2.forward(b)
pen2.hideturtle()
huayuan(200)
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